fix: fix race in IwxProcessEvents; fix WiFi bugs

This commit is contained in:
daniel committed 2026-10-02 10:21:18 +02:00
1 parent c91de69189
commit ef1e69ae83
7 files changed
+191 -27

No files matched your search

+4 -2
View File
@@ -204,10 +204,12 @@ int main() {
unsigned acked, count;
sscanf(line.c_str(), "TXSTATUS %u %u", &acked, &count);
for (unsigned i = 0; i < count; i++) IwxConnectNoteTx(acked != 0);
printf("DONE STATE %d LINK %d\n", IwxConnectState(), IwxLinkUp() ? 1 : 0);
printf("DONE STATE %d LINK %d WORK %d\n", IwxConnectState(),
IwxLinkUp() ? 1 : 0, IwxConnectHasWork() ? 1 : 0);
} else if (line.rfind("SERVICE", 0) == 0) {
IwxConnectService();
printf("DONE STATE %d LINK %d\n", IwxConnectState(), IwxLinkUp() ? 1 : 0);
printf("DONE STATE %d LINK %d WORK %d\n", IwxConnectState(),
IwxLinkUp() ? 1 : 0, IwxConnectHasWork() ? 1 : 0);
} else if (line.rfind("TICK ", 0) == 0) {
unsigned ms; sscanf(line.c_str(), "TICK %u", &ms);
Timekeeping::g_ms += ms;