To ROM J.
[uccvend-snackrom.git] / ROM2 / main_basic.c
index 1f2f7d1..94680c8 100644 (file)
@@ -190,15 +190,15 @@ int main() {
                if (door_open() != last_door_open) {
                        last_door_open = door_open();
                        send_door_msg(last_door_open);
+                       chime_start();
                        if (last_door_open) {
-                               chime_start();
                                set_msg("DOOR OPEND");
                        } else {
-                               chime_start();
                                set_msg("DOOR CLOSE");
                        }
                }
 
+               /*
                if (rx_queue_state) {
                        switch (msg_buf[0]) {
                                case 'V':
@@ -220,12 +220,13 @@ int main() {
                                        ping_pong();
                                        break;
                                default:
-                               /* shrug */
+                                       // shurg
                                        send_nack();
                                        break;
                        }
                        msg_clr();
                }
+               */
 
                keypad_read();
                if (keypad_pressed()) {
@@ -251,9 +252,11 @@ int main() {
                        send_keypress(last_key);
                }
 
+               /*
                if (coin_value != last_coin_value) {
                        send_balance();
                        last_coin_value = coin_value;
                }
+               */
        }
 }

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