mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
RPMCapture: define period as UINT32_MAX when timed out
This commit is contained in:
parent
825dc47fad
commit
ec4ed75264
@ -125,7 +125,7 @@ void RPMCapture::Run()
|
||||
|
||||
} else {
|
||||
// Timeout for no interrupts
|
||||
_period = 0;
|
||||
_period = UINT32_MAX;
|
||||
ScheduleDelayed(RPM_PULSE_TIMEOUT);
|
||||
}
|
||||
|
||||
|
||||
@ -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};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user