AP_HAL_Linux: fix latent bug in ToneAlarm

This commit is contained in:
Mark Whitehorn 2018-04-05 15:04:21 -06:00 committed by Andrew Tridgell
parent 960e217e79
commit 7ad0318d4f
1 changed files with 1 additions and 1 deletions

View File

@ -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;