1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-21 10:12:30 +00:00

I7000: Cleanup some possible bad code in 7090 LPR.

This commit is contained in:
Richard Cornwell 2016-07-13 22:51:26 -04:00
parent 68c5d6158f
commit 74c49eeba7

View File

@ -204,9 +204,10 @@ print_line(UNIT * uptr, int chan, int unit)
else {
if (bcd == 020)
bcd = 10;
if (uptr->u5 & LPRSTA_BINMODE)
lpr_data[unit].lbuff[i++] = (buff[i] != 0)?'1':' ';
else
if (uptr->u5 & LPRSTA_BINMODE) {
char ch = (buff[i] != 0) ? '1' : ' ';
lpr_data[unit].lbuff[i++] = ch;
} else
lpr_data[unit].lbuff[i++] = sim_six_to_ascii[bcd];
}
}