Merge pull request #483 from DrDoof/perf/rx-nosleep

rtlplayground: do not sleep in idle() while a packet is waiting
This commit is contained in:
René van Dorst authored and GitHub committed 2026-09-20 13:02:59 +00:00
commit 55431b39f6
1 file changed
+3 -1
+3 -1
View File
@@ -1162,7 +1162,9 @@ void handle_button(void)
// //
void idle(void) void idle(void)
{ {
PCON |= 1; reg_read(RTL837X_REG_NIC_RX_BUFF_DATA);
if (!SFR_DATA_U16)
PCON |= 1;
if (sec_counter >= SYS_TICK_HZ) { if (sec_counter >= SYS_TICK_HZ) {
sec_counter -= SYS_TICK_HZ; sec_counter -= SYS_TICK_HZ;
reg_read_m(RTL837X_REG_SEC_COUNTER); reg_read_m(RTL837X_REG_SEC_COUNTER);