Added some protections against creash due to high frequency, but its not ideal ...
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user