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
+2
+2
View File
@@ -1162,6 +1162,8 @@ void handle_button(void)
//
void idle(void)
{
reg_read(RTL837X_REG_NIC_RX_BUFF_DATA);
if (!SFR_DATA_U16)
PCON |= 1;
if (sec_counter >= SYS_TICK_HZ) {
sec_counter -= SYS_TICK_HZ;