git.ucc.asn.au
/
uccvend-snackrom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor tweaks
[uccvend-snackrom.git]
/
ROM2
/
main_basic.c
diff --git
a/ROM2/main_basic.c
b/ROM2/main_basic.c
index
8a48086
..
36ace96
100644
(file)
--- a/
ROM2/main_basic.c
+++ b/
ROM2/main_basic.c
@@
-90,6
+90,7
@@
void give_change() {
coin_cost(cost);
send_ack();
}
coin_cost(cost);
send_ack();
}
+
void send_keypress(u8 key) {
/* send a packet of the form KX with X being the key, or R for reset */
wait_for_tx_free();
void send_keypress(u8 key) {
/* send a packet of the form KX with X being the key, or R for reset */
wait_for_tx_free();
@@
-169,7
+170,6
@@
int main() {
keypad_read();
if (keypad_pressed()) {
send_keypress(last_key);
keypad_read();
if (keypad_pressed()) {
send_keypress(last_key);
- /* beep? */
}
if (coin_value != last_coin_value) {
}
if (coin_value != last_coin_value) {
UCC
git Repository :: git.ucc.asn.au