From: Bernard Blackham Date: Fri, 25 Jun 2004 02:17:03 +0000 (+0000) Subject: There is no row 5 X-Git-Tag: X~4 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=889db98b647b545c312f29a2bedd947a48ab5e2c;p=uccvend-snackrom.git There is no row 5 --- diff --git a/ROM2/main_basic.c b/ROM2/main_basic.c index 84372ce..5fd7a85 100644 --- a/ROM2/main_basic.c +++ b/ROM2/main_basic.c @@ -82,6 +82,7 @@ void dispense_something() { send_string("102 Vend all motors starting." CRLF); for (motor[0] = '0'; motor[0] <= '9'; motor[0]++) { for (motor[1] = '0'; motor[1] <= '9'; motor[1]++) { + if (motor[1] == '5') continue; /* there is now row 5 */ send_string("101 Vending "); send_string(motor); send_string(CRLF);