Commander: Fix GPS loss not handled properly

This commit is contained in:
Johan Jansen
2015-02-11 16:42:01 +01:00
parent 7f7c36b5b1
commit dc522f217f
3 changed files with 21 additions and 20 deletions

View File

@@ -115,6 +115,11 @@ void buzzer_deinit()
close(buzzer);
}
void set_tune_override(int tune)
{
ioctl(buzzer, TONE_SET_ALARM, tune);
}
void set_tune(int tune)
{
unsigned int new_tune_duration = tune_durations[tune];