From 0bdb238c0a1488ebc8d35aa0aa5aa8c739d5562b Mon Sep 17 00:00:00 2001 From: feelfree69 Date: Sun, 15 Feb 2026 16:42:18 +0100 Subject: [PATCH] Check fir button presses once a second --- rtlplayground.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtlplayground.c b/rtlplayground.c index e85809b..55b6d52 100644 --- a/rtlplayground.c +++ b/rtlplayground.c @@ -1161,6 +1161,9 @@ void idle(void) reg_write_m(RTL837X_REG_SEC_COUNTER); reg_read_m(RTL837X_REG_SEC_COUNTER); + // Check for button presses once a second + handle_button(); + #ifdef DEBUG print_sfr_data(); write_char('\n'); @@ -1200,9 +1203,6 @@ void idle(void) // Check for changes with SFP modules handle_sfp(); - // Check for button presses - handle_button(); - // Check new Packets RX handle_rx(); // Check UIP for packets to transmit