The LPT control registers are now initialized to 0x04.

This commit is contained in:
OBattler
2018-11-09 20:05:32 +01:00
parent b42d380f3b
commit c91b1f2b8e
3 changed files with 5 additions and 3 deletions

View File

@@ -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)
{

View File

@@ -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<44>ing, <michael@drueing.de>
* 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));
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);

View File

@@ -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, <decwiz@yahoo.com>
*
@@ -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);