Re: Advice on how to add the Epson SL-D700

Solomon Peachy <[email protected]>
Newsgroups gmane.linux.printing.gimp-print.devel
Message-ID <[email protected]>
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)

_______________________________________________
Gimp-print-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE3H5Sx9DyiyB5hnENrGLLO/XVulEFAmEZ0WQACgkQrGLLO/XV
ulEH9g/+OGGUTYW2S4l9W7EcZ1wMRG9Xkk8GZcZLOQXXsrMN1d54TXvzrh7xKTD8
RBTtfKwm3DQLvECBp1g2I7TQWwFWyB1kRCDfP+izZxEOAnn6jxtIn9YCAu8a9uNc
jIlWFJMxmutCOrRaIOT0yTNgjjdJhujO4y3ZhtqgPbM9IhBPlZ8nwJ2o/3ZpI/wh
OhXQ5Z7PJn0drjtwrcHL8K4pbCkfkFqSw/PqkU06qi45DQUc6xmAD59SfC+tEjzV
xfTgd3poJO2vhNl+ldcsWfiEuu4XwnDFPZlIHzKeEHgBdyi//jC+js+eHIEsegMT
B9TMtnns4J6R8ViE3GL93TRUgIIupdAj/fJuZtpNUpUpBHPCPBv2uOITvMWllD6h
DSFyeb6kzYsU8vFcLs6sp0IVneJ7OSzzE32VBRmhujnYetkQ1LTovJRPowgrbWcy
9AmDqzl92xZOXPNnLh5d5i44tupcIX7pFYBh7n0YddVTXDX4/TCZQeWlGQxHvi8D
krTLW98Hc7E4++Wvw3g4Aec2s1z1olvbzj7Bus2rNiyX+6teuFs6G7RFY9RdfkOs
/Ei+rGmp9pcL/XRUYAYc+Ryf1lIUoCCPZ0S1CpotNlKRDwUAKc29xY6rvSA54dGZ
beCrRED4isNhOlp1ZPFYvGjIEop4RP/JtCbb1gHU0RVm1YvEQEI=
=/czn
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.