diff --git a/src/lpt.c b/src/lpt.c index 824b695be..f7e25513e 100644 --- a/src/lpt.c +++ b/src/lpt.c @@ -80,7 +80,7 @@ void lpt_devices_close() } } -static uint8_t lpt_dats[3], lpt_ctrls[3]; +static uint8_t lpt_dats[3], lpt_ctrls[3] = { 0x04, 0x04, 0x04 }; void lpt_write(int i, uint16_t port, uint8_t val, void *priv) { diff --git a/src/printer/prt_escp.c b/src/printer/prt_escp.c index 6d1d70a0c..a08c625bf 100644 --- a/src/printer/prt_escp.c +++ b/src/printer/prt_escp.c @@ -8,7 +8,7 @@ * * Implementation of the Generic ESC/P Dot-Matrix printer. * - * Version: @(#)prt_escp.c 1.0.5 2018/11/09 + * Version: @(#)prt_escp.c 1.0.6 2018/11/09 * * Authors: Michael Drüing, * Fred N. van Kempen, @@ -1948,6 +1948,7 @@ escp_init(const lpt_device_t *INFO) dev = (escp_t *)malloc(sizeof(escp_t)); memset(dev, 0x00, sizeof(escp_t)); dev->name = INFO->name; + dev->ctrl = 0x04; /* Create a full pathname for the font files. */ wcscpy(dev->fontpath, exe_path); diff --git a/src/printer/prt_text.c b/src/printer/prt_text.c index 57a8df602..24bf95cbe 100644 --- a/src/printer/prt_text.c +++ b/src/printer/prt_text.c @@ -15,7 +15,7 @@ * printer mechanics. This would lead to a page being 66 lines * of 80 characters each. * - * Version: @(#)prt_text.c 1.0.5 2018/11/09 + * Version: @(#)prt_text.c 1.0.6 2018/11/09 * * Author: Fred N. van Kempen, * @@ -411,6 +411,7 @@ prnt_init(const lpt_device_t *INFO) dev = (prnt_t *)malloc(sizeof(prnt_t)); memset(dev, 0x00, sizeof(prnt_t)); dev->name = INFO->name; + dev->ctrl = 0x04; //INFO("PRNT: LPT printer '%s' initializing\n", dev->name);