1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 09:16:01 +03:00

change spektrum fade to use millis()

This commit is contained in:
Jonathan Hudson 2017-02-13 17:46:51 +00:00
parent 6a7eaa2b90
commit 30feb15706

View file

@ -119,7 +119,7 @@ uint8_t spektrumFrameStatus(void)
// Fetch the fade count
const uint16_t fade = (spekFrame[0] << 8) + spekFrame[1];
const uint32_t current_secs = micros() / 1000 / (1000 / SPEKTRUM_FADE_REPORTS_PER_SEC);
const uint32_t current_secs = millis() / (1000 / SPEKTRUM_FADE_REPORTS_PER_SEC);
if (spek_fade_last_sec == 0) {
// This is the first frame status received.