From 3eac9bf99c4662429e0515b963530ddfb389a5e1 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Tue, 9 May 2023 12:24:00 -0400 Subject: [PATCH] DISPLAY: Removed check for initialization on type340 device. --- display/type340.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/display/type340.c b/display/type340.c index 32fc8cf..0f84c69 100644 --- a/display/type340.c +++ b/display/type340.c @@ -113,6 +113,7 @@ enum jump_type { DJP=2, DJS=3, DDS=1 }; /* type 347 */ #define CH_SUB 0011 /* Subscript. */ #define CH_SUP 0012 /* Superscript. */ + /* put all the state in a struct "just in case" */ static struct type340 { ty340word DAC; /* Display Address Counter */ @@ -204,10 +205,7 @@ ty340_reset(void *dptr) { struct type340 *u = UNIT(0); #ifndef TY340_NODISPLAY - if (!u->initialized) { - display_init(DIS_TYPE340, 1, dptr); /* XXX check return? */ - u->initialized = 1; - } + display_init(DIS_TYPE340, 1, dptr); /* XXX check return? */ #endif u->xpos = u->ypos = 0; u->mode = PARAM;