AP_HAL_Chibios: fix latent bug in ToneAlarm

This commit is contained in:
Mark Whitehorn 2018-04-05 14:42:11 -06:00 committed by Andrew Tridgell
parent 0c14a309f7
commit 960e217e79
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,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) {
stop();
tune_changed = true;