From 1af80bae6a1f92b8e3c8e2cc5898ad5ecfa85fa2 Mon Sep 17 00:00:00 2001 From: Kevin Nakamura Date: Sat, 23 Jul 2022 17:54:36 +0900 Subject: [PATCH] Fix TILT magic number + typo --- firmware/td-io.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/td-io.c b/firmware/td-io.c index f09ac8b..30b404d 100644 --- a/firmware/td-io.c +++ b/firmware/td-io.c @@ -345,7 +345,8 @@ int main() { memcpy(&msg_send[o], input_desc_1coin, sizeof(input_desc_1coin)); o += sizeof(input_desc_1coin); } else { - memcpy(&msg_send[o], input_desc_2coin, sizeof(input_desc_2coin)); o += sizeof(input_desc_2coin); + memcpy(&msg_send[o], input_desc_2coin, sizeof(input_desc_2coin)); + o += sizeof(input_desc_2coin); } } else if ((msg_length - i) >= 1 && message[i] == 0x15) { i++; @@ -376,7 +377,7 @@ int main() { last_process_coin = now; } msg_send[o] = ((switches >> SR_TEST) & 1) << 7 - | ((switches >> SR_TILT) & 1) << 7; + | ((switches >> SR_TILT) & 1) << 6; o++; //printf("Got switch request for %02x players\n", num_players); for (int player = 0; player < num_players; player++) {