Check fir button presses once a second

This commit is contained in:
feelfree69
2026-02-15 16:42:18 +01:00
parent e5d23f11de
commit 0bdb238c0a
+3 -3
View File
@@ -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