|
From: Solomon P. <pi...@sh...> - 2021-08-16 00:59:07
|
On Mon, Aug 02, 2021 at 07:36:10PM -0400, Solomon Peachy wrote:
> LB 03 00 00 01 01 # sent before FP
It turns out this changes based on the media type.
Glossy: 00 01 00
Luster: 00 01 01
Matte: 00 01 32
I currently have this specified in the model.xml's preInitRemoteSequence
but that obviously won't do.
I've been trying to add it as a parameter from within a <paper> definition:
<parameter type="raw" name="escp2_preinit_remote_sequence">LB\003\000\000\001\001</parameter>
But it seems pd->preinit_remote_sequence is set in setup_basic(), far
before the paper definition is parsed. I added a hack in
adjust_density_and_ink_type() to explicitly check for that parameter:
if (pv && stp_check_raw_parameter(pv, "escp2_preinit_remote_sequence", STP_PARAMETER_ACTIVE))
pd->preinit_remote_sequence = escp2_preinit_remote_sequence(pv);
but that's a pretty ugly hack IMO. It perhaps makes more sense to add a
generic LB command send into escp2_set_remote_sequence() and create a
parameter to configure it. But what should I call it?
- Solomon
--
Solomon Peachy pizza at shaftnet dot org (email&xmpp)
@pizza:shaftnet dot org (matrix)
High Springs, FL speachy (libra.chat)
|