mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 13:13:35 +08:00
tone_alarm: more device paths replaced with #define
This commit is contained in:
committed by
Lorenz Meier
parent
03727974f1
commit
1a641b791d
@@ -82,7 +82,7 @@ static int buzzer;
|
||||
|
||||
int buzzer_init()
|
||||
{
|
||||
buzzer = open("/dev/tone_alarm", O_WRONLY);
|
||||
buzzer = open(TONEALARM_DEVICE_PATH, O_WRONLY);
|
||||
|
||||
if (buzzer < 0) {
|
||||
warnx("Buzzer: open fail\n");
|
||||
|
||||
Reference in New Issue
Block a user