D'oh. Wrong silence code.
[uccvend-snackrom.git] / ROM2 / main_basic.c
index db11afc..381db9c 100644 (file)
@@ -4,7 +4,7 @@
  * and snacks.
  */
 
-#define VERSION_STRING "V 20040624"
+#define VERSION_STRING "X 20040625"
 
 #include "display_basic.h"
 #include "keypad.h"
@@ -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);
@@ -235,7 +236,7 @@ void do_silence() {
                send_string("511 Unknown silence duration." CRLF);
                return;
        }
-       send_string("500 Silence started." CRLF);
+       send_string("501 Silence started." CRLF);
        return;
 }
 

UCC git Repository :: git.ucc.asn.au