AP_Notify: change for new PX4 device paths

This commit is contained in:
Andrew Tridgell 2015-02-13 19:21:24 +11:00
parent 4537acb898
commit 9f7e20090c
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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);