Add portapack cpld write usb serial command for AG256SL100 devices (#2401)

This commit is contained in:
Bernd Herzog 2024-12-05 08:12:14 +01:00 committed by GitHub
parent c553df7170
commit 874eba8b36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 238 additions and 2 deletions

View file

@ -101,7 +101,11 @@ class MessageQueue {
}
bool push(const void* const buf, const size_t len) {
chMtxLock(&mutex_write);
bool lock_success = chMtxTryLock(&mutex_write);
if (!lock_success) {
return false;
}
const auto result = fifo.in_r(buf, len);
chMtxUnlock();