Added some protections against creash due to high frequency, but its not ideal ...

This commit is contained in:
2018-02-07 22:33:54 +01:00
parent 3584830dc5
commit dcddca9dd8
11 changed files with 117 additions and 47 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ void UUSART_DMA_HandleRxFromIRQ(Unit *unit, uint16_t endpos)
.data2 = count,
.cb = UUSART_SendReceivedDataToMaster
};
scheduleJob(&j);
scheduleJob(&j); // TODO disable unit on failure
// Move the read cursor, wrap around if needed
if (endpos == UUSART_RXBUF_LEN) endpos = 0;