fix commander: initialize tune_durations (#9468)

Fixes #9451
This commit is contained in:
Beat Küng 2018-05-16 16:20:28 +02:00 committed by Daniel Agar
parent ad4b3a738a
commit 11f4631b2a

View File

@ -128,6 +128,10 @@ int buzzer_init()
tune_durations[TONE_NOTIFY_NEGATIVE_TUNE] = 900000;
tune_durations[TONE_NOTIFY_NEUTRAL_TUNE] = 500000;
tune_durations[TONE_ARMING_WARNING_TUNE] = 3000000;
tune_durations[TONE_HOME_SET] = 800000;
tune_durations[TONE_BATTERY_WARNING_FAST_TUNE] = 800000;
tune_durations[TONE_BATTERY_WARNING_SLOW_TUNE] = 800000;
tune_durations[TONE_SINGLE_BEEP_TUNE] = 300000;
tune_control_pub = orb_advertise(ORB_ID(tune_control), &tune_control);
return PX4_OK;
}