This fails - suspect change in soft registers
# debugging doesn't get compiled into the ROM image
CFLAGS = -m68hc11 -mshort -Wall -O1 \
- -msoft-reg-count=0 -ffixed-z -g -fomit-frame-pointer
+ -msoft-reg-count=1 -ffixed-z -g -fomit-frame-pointer
LDFLAGS = -m68hc11 -mshort -Wl,-m,m68hc11elfb \
-nostartfiles \
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':
ping_pong();
break;
default:
- /* shrug */
+ // shurg
send_nack();
break;
}
msg_clr();
}
+ */
keypad_read();
if (keypad_pressed()) {
send_keypress(last_key);
}
+ /*
if (coin_value != last_coin_value) {
send_balance();
last_coin_value = coin_value;
}
+ */
}
}
//if (!is_motor(slot)) return MOTOR_NOSLOT;
motor_on(slot);
- delay(1000);
- motors_off();
- return MOTOR_SUCCESS;
+ delay(100);
if (!left_home(slot)) {
motors_off();