RPMCapture: define period as UINT32_MAX when timed out

This commit is contained in:
Matthias Grob 2024-12-10 19:44:16 +01:00
parent 825dc47fad
commit ec4ed75264
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ void RPMCapture::Run()
} else {
// Timeout for no interrupts
_period = 0;
_period = UINT32_MAX;
ScheduleDelayed(RPM_PULSE_TIMEOUT);
}

View File

@ -83,7 +83,7 @@ private:
hrt_abstime _hrt_timestamp{0};
hrt_abstime _hrt_timestamp_prev{0};
uint32_t _period{0};
uint32_t _period{UINT32_MAX};
uint32_t _error_count{0};
px4::atomic<bool> _value_processed{true};