mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
HAL_Linux: give error msg on failure to start toneAlarm
This commit is contained in:
parent
7718be81cb
commit
c8c822422a
@ -61,6 +61,7 @@ int8_t LinuxUtil::toneAlarm_init()
|
||||
{
|
||||
tune_num = 0; //play startup tune
|
||||
if((period_fd == -1) || (duty_fd == -1) || (run_fd == -1)){
|
||||
hal.console->printf("ToneAlarm: Error!! please check if PWM overlays are loaded correctly");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
@ -68,7 +69,6 @@ int8_t LinuxUtil::toneAlarm_init()
|
||||
|
||||
void LinuxUtil::stop()
|
||||
{
|
||||
|
||||
write(run_fd,"0",sizeof(char));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user