From: Bernard Blackham Date: Fri, 15 Aug 2003 17:11:04 +0000 (+0000) Subject: Long beep on start up X-Git-Tag: ROMW~54 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=0b1cde693aae432ed16592cc85edfc3ae0d645a2;p=uccvend-snackrom.git Long beep on start up --- diff --git a/ROM2/main_basic.c b/ROM2/main_basic.c index b7c110f..6019371 100644 --- a/ROM2/main_basic.c +++ b/ROM2/main_basic.c @@ -122,13 +122,15 @@ int main() { u16 last_coin_value; bool last_door_open; - chime_start(); + chime_on(); misc_output = 0; changer_output = 0x7f; _io_ports[M6811_PORTA] = 0xc8; _io_ports[M6811_DDRD] = 0x3e; _io_ports[M6811_SPCR] = 0x12; + + delay(1000); chime_off(); /* mainly for debugging */ unlock(); /* enable interrupts */ @@ -138,7 +140,7 @@ int main() { last_coin_value = 0; last_door_open = 0; - + while(1) { if (door_open() != last_door_open) { last_door_open = door_open();