|
From: Solomon P. <pi...@sh...> - 2021-08-16 02:46:14
|
On Sun, Aug 15, 2021 at 09:31:46PM -0400, Robert Krawitz wrote:
> Device Drivers Are Ugly (tm)
That's practically the caption of my career. :D
> As ugly as it is, I'd say either come up with a new integer parameter
> for this or add an escape hatch remote sequence per-paper that you can
> set for the papers for this printer.
I ended up doing the former. Lacking a better name I just defined it as
an internal parameter:
PARAMETER_INT(roll_lb)
Which is only referenced in escp2_set_remote_sequence():
if (stp_check_int_parameter(pv, "escp2_roll_lb", STP_PARAMETER_ACTIVE))
stp_send_command(v, "LB", "bccc", 0, 1,
stp_get_int_parameter(pv, "escp2_roll_lb"));
And in the paper definition:
<parameter type="integer" name="escp2_roll_lb">0x32</parameter>
It seems to work okay.
- Solomon
--
Solomon Peachy pizza at shaftnet dot org (email&xmpp)
@pizza:shaftnet dot org (matrix)
High Springs, FL speachy (libra.chat)
|