1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Used correct cmp for us time comparison.

This commit is contained in:
mikeller 2017-08-22 22:14:12 +12:00
parent cda31ef88a
commit 466063d5b0

View file

@ -614,7 +614,7 @@ rx_spi_received_e frSkyDDataReceived(uint8_t *packet)
}
}
if (cmp32(currentPacketReceivedTime, lastPacketReceivedTime) > (t_out * SYNC)) {
if (cmpTimeUs(currentPacketReceivedTime, lastPacketReceivedTime) > (t_out * SYNC)) {
#ifdef USE_FRSKY_RX_PA_LNA
RX_enable();
#endif