From 47784820b78cde8fb7fdf97c45d37cd9e4514203 Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Sun, 12 Feb 2023 03:11:55 -0500 Subject: [PATCH] remove redundent todo --- taikohook/bnusio.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/taikohook/bnusio.c b/taikohook/bnusio.c index d4193c9..cc08498 100644 --- a/taikohook/bnusio.c +++ b/taikohook/bnusio.c @@ -207,18 +207,17 @@ static int my_bnusio_SetGout(uint8_t id, uint8_t value) static int my_bnusio_GetAnalogIn(uint8_t id) { uint8_t gamebtns = 0; - + taiko_dll.poll(); taiko_dll.get_gamebtns(&gamebtns); - - if (gamebtns & 1 << id) { + + if (gamebtns & 1 << id) { return 0xffff; } return 0; } -// TODO: Auto-hold test switch static int my_bnusio_GetSwIn() { uint8_t opbtn; @@ -277,4 +276,4 @@ static int my_bnusio_GetServiceError(uint8_t id) { //dprintf("bnusio: GetServiceError %d\n", id); return 0; -} \ No newline at end of file +}