The LPT control registers are now initialized to 0x04.
This commit is contained in:
@@ -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)
|
void lpt_write(int i, uint16_t port, uint8_t val, void *priv)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* Implementation of the Generic ESC/P Dot-Matrix printer.
|
* 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<44>ing, <michael@drueing.de>
|
* Authors: Michael Dr<44>ing, <michael@drueing.de>
|
||||||
* Fred N. van Kempen, <decwiz@yahoo.com>
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
||||||
@@ -1948,6 +1948,7 @@ escp_init(const lpt_device_t *INFO)
|
|||||||
dev = (escp_t *)malloc(sizeof(escp_t));
|
dev = (escp_t *)malloc(sizeof(escp_t));
|
||||||
memset(dev, 0x00, sizeof(escp_t));
|
memset(dev, 0x00, sizeof(escp_t));
|
||||||
dev->name = INFO->name;
|
dev->name = INFO->name;
|
||||||
|
dev->ctrl = 0x04;
|
||||||
|
|
||||||
/* Create a full pathname for the font files. */
|
/* Create a full pathname for the font files. */
|
||||||
wcscpy(dev->fontpath, exe_path);
|
wcscpy(dev->fontpath, exe_path);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
* printer mechanics. This would lead to a page being 66 lines
|
* printer mechanics. This would lead to a page being 66 lines
|
||||||
* of 80 characters each.
|
* 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, <decwiz@yahoo.com>
|
* Author: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||||
*
|
*
|
||||||
@@ -411,6 +411,7 @@ prnt_init(const lpt_device_t *INFO)
|
|||||||
dev = (prnt_t *)malloc(sizeof(prnt_t));
|
dev = (prnt_t *)malloc(sizeof(prnt_t));
|
||||||
memset(dev, 0x00, sizeof(prnt_t));
|
memset(dev, 0x00, sizeof(prnt_t));
|
||||||
dev->name = INFO->name;
|
dev->name = INFO->name;
|
||||||
|
dev->ctrl = 0x04;
|
||||||
|
|
||||||
//INFO("PRNT: LPT printer '%s' initializing\n", dev->name);
|
//INFO("PRNT: LPT printer '%s' initializing\n", dev->name);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user