Browse Source

AP_Notify: fixed RGBLED on PX4 with latest PX4Firmware

now needs a RGBLED_MODE_ON
master
Andrew Tridgell 11 years ago
parent
commit
f59d0099a4
  1. 1
      libraries/AP_Notify/ToshibaLED_PX4.cpp

1
libraries/AP_Notify/ToshibaLED_PX4.cpp

@ -40,6 +40,7 @@ bool ToshibaLED_PX4::hw_init() @@ -40,6 +40,7 @@ bool ToshibaLED_PX4::hw_init()
hal.console->printf("Unable to open " RGBLED_DEVICE_PATH);
return false;
}
ioctl(_rgbled_fd, RGBLED_SET_MODE, (unsigned long)RGBLED_MODE_ON);
return true;
}

Loading…
Cancel
Save