mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Notify: change for new PX4 device paths
This commit is contained in:
parent
4537acb898
commit
9f7e20090c
@ -68,9 +68,9 @@ const ToneAlarm_PX4::Tone ToneAlarm_PX4::_tones[] {
|
||||
bool ToneAlarm_PX4::init()
|
||||
{
|
||||
// open the tone alarm device
|
||||
_tonealarm_fd = open(TONEALARM_DEVICE_PATH, O_WRONLY);
|
||||
_tonealarm_fd = open(TONEALARM0_DEVICE_PATH, O_WRONLY);
|
||||
if (_tonealarm_fd == -1) {
|
||||
hal.console->printf("Unable to open " TONEALARM_DEVICE_PATH);
|
||||
hal.console->printf("ToneAlarm_PX4: Unable to open " TONEALARM0_DEVICE_PATH);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -35,9 +35,9 @@ extern const AP_HAL::HAL& hal;
|
||||
bool ToshibaLED_PX4::hw_init()
|
||||
{
|
||||
// open the rgb led device
|
||||
_rgbled_fd = open(RGBLED_DEVICE_PATH, 0);
|
||||
_rgbled_fd = open(RGBLED0_DEVICE_PATH, 0);
|
||||
if (_rgbled_fd == -1) {
|
||||
hal.console->printf("Unable to open " RGBLED_DEVICE_PATH);
|
||||
hal.console->printf("Unable to open " RGBLED0_DEVICE_PATH);
|
||||
return false;
|
||||
}
|
||||
ioctl(_rgbled_fd, RGBLED_SET_MODE, (unsigned long)RGBLED_MODE_ON);
|
||||
|
Loading…
Reference in New Issue
Block a user