added a wake up pipeline to see if sim module actually is doing things or not. Might not work well on Windows machines... proxspace I am looking at you. but in short this would make comms between device and client faster

This commit is contained in:
iceman1001 committed 2026-08-27 15:35:45 +02:00
1 parent 98c5897bbe
commit 5c38ce0a1d
5 files changed
+91 -2

No files matched your search

+8
View File
@@ -138,6 +138,10 @@ void SendCommandOLD(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, c
pthread_mutex_unlock(&txBufferMutex);
// and interrupt its receive, which it would otherwise sit out in full
// before looking at the send buffer at all
uart_wakeup();
//__atomic_test_and_set(&txcmd_pending, __ATOMIC_SEQ_CST);
}
@@ -202,6 +206,10 @@ static void SendCommandNG_internal(uint16_t cmd, uint8_t *data, size_t len, bool
pthread_mutex_unlock(&txBufferMutex);
// and interrupt its receive, which it would otherwise sit out in full
// before looking at the send buffer at all
uart_wakeup();
//__atomic_test_and_set(&txcmd_pending, __ATOMIC_SEQ_CST);
}