1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Merge pull request #3918 from mikeller/fix_cmp_use

Used correct cmp for us time comparison.
This commit is contained in:
Martin Budden 2017-08-22 13:04:52 +01:00 committed by GitHub
commit 8e1cbff42b

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