S.PORT Flash fix

This commit is contained in:
Bertrand Songis
2019-06-06 17:04:08 +02:00
parent 1203557739
commit 5ae3eae1d4
5 changed files with 30 additions and 5 deletions
@@ -235,3 +235,13 @@ uint8_t telemetryGetByte(uint8_t * byte)
return telemetryNoDMAFifo.pop(*byte);
#endif
}
void telemetryClearFifo()
{
#if defined(PCBX12S)
telemetryDMAFifo.clear();
#endif
telemetryNoDMAFifo.clear();
}