mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Linux: fix latent bug in ToneAlarm
This commit is contained in:
parent
960e217e79
commit
7ad0318d4f
|
@ -81,7 +81,7 @@ void ToneAlarm::stop()
|
|||
|
||||
bool ToneAlarm::play()
|
||||
{
|
||||
uint16_t cur_time = AP_HAL::millis();
|
||||
const uint32_t cur_time = AP_HAL::millis();
|
||||
if(tune_num != prev_tune_num){
|
||||
tune_changed = true;
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue