hiti: Document a couple more things, and fix the log messages for media type
This commit is contained in:
parent
f77d10812f
commit
3f30912f96
|
@ -1200,7 +1200,7 @@ static uint8_t *hiti_get_correction_data(struct hiti_ctx *ctx, uint8_t mode)
|
|||
int mediatype = ctx->ribbonvendor & 0xf000;
|
||||
|
||||
DEBUG("Locating correction data for model %d, mode %02x, media %02x, ver %02x\n",
|
||||
ctx->conn->type, mode, mediatype >> 2, mediaver);
|
||||
ctx->conn->type, mode, mediatype >> 4, mediaver);
|
||||
|
||||
switch (ctx->conn->type)
|
||||
{
|
||||
|
@ -1601,6 +1601,9 @@ static const char* hiti_get_heat_file(struct hiti_ctx *ctx, uint8_t mode)
|
|||
int mediaver = ctx->ribbonvendor & 0x3f;
|
||||
int mediatype = ctx->ribbonvendor & 0xf000;
|
||||
|
||||
DEBUG("Locating heat data for model %d, mode %02x, media %02x, ver %02x\n",
|
||||
ctx->conn->type, mode, mediatype >> 4, mediaver);
|
||||
|
||||
// XXX if field_0x70 != 100) send blank/empty tables..
|
||||
// no idea what sets this field.
|
||||
switch (ctx->conn->type) {
|
||||
|
|
|
@ -2,6 +2,17 @@ These '.bin' are either 3D LUTs or Heat Tables for various HiTi
|
|||
printers. All files were extracted from public HiTi source code or
|
||||
binary driver releases.
|
||||
|
||||
Media type & Version are obtained via the CMD_ERDC_RRVC ("Read Ribbon Vendor Code") command.
|
||||
16-bit word:
|
||||
|
||||
x0xx
|
||||
||\\--- version (0-255)
|
||||
|\----- unknown (always zero?)
|
||||
\------ type/mfg (1 for CHC, 0 for DNP) (presumably others too?)
|
||||
|
||||
Some models (P461, maybe others?) do not support RRVC. At this time the mechanism to query
|
||||
the ribbon mfg/etc is unknown; it might need to be manually specified.
|
||||
|
||||
LUT filename Codes:
|
||||
|
||||
C M Q P ? ra [ .bin ]
|
||||
|
|
Loading…
Reference in New Issue