From: Bernard Blackham Date: Mon, 21 Jun 2004 16:39:47 +0000 (+0000) Subject: Spell some things out, but don't be quite so verbose in other places X-Git-Tag: ROMW~31 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=8774c43f451c903440b243e1439a305b843ca276;p=uccvend-snackrom.git Spell some things out, but don't be quite so verbose in other places --- diff --git a/ROM2/main_basic.c b/ROM2/main_basic.c index b2923bc..50614b3 100644 --- a/ROM2/main_basic.c +++ b/ROM2/main_basic.c @@ -155,7 +155,7 @@ int main() { _io_ports[M6811_PORTA] = 0xc0; /* display on. talking to serial port */ _io_ports[M6811_DDRA] = 0xfc; _io_ports[M6811_DDRD] = 0x3e; - _io_ports[M6811_SPCR] = 0x12; + _io_ports[M6811_SPCR] = M6811_MSTR | M6811_SPR1; set_misc_output(0x00); display_init(); @@ -192,11 +192,7 @@ int main() { last_door_open = door_open(); send_door_msg(last_door_open); chime_start(); - if (last_door_open) { - set_msg("DOOR OPEND"); - } else { - set_msg("DOOR CLOSE"); - } + set_msg(last_door_open?"DOOR OPEN ":"DOOR CLOSE"); } if (sci_have_packet) {