mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 07:13:56 -04:00
AP_Scheduler: add floating point specifier on constant
This commit is contained in:
parent
39ae285a7f
commit
85b737db31
@ -126,7 +126,7 @@ public:
|
||||
// get the time-allowed-per-loop in seconds
|
||||
float get_loop_period_s() {
|
||||
if (is_zero(_loop_period_s)) {
|
||||
_loop_period_s = 1.0 / _loop_rate_hz;
|
||||
_loop_period_s = 1.0f / _loop_rate_hz;
|
||||
}
|
||||
return _loop_period_s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user