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:
parent
6a7eaa2b90
commit
30feb15706
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue