From f59d0099a411e3e8ae2f71f405bdd566398e7933 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Oct 2013 14:55:10 +1100 Subject: [PATCH] AP_Notify: fixed RGBLED on PX4 with latest PX4Firmware now needs a RGBLED_MODE_ON --- libraries/AP_Notify/ToshibaLED_PX4.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Notify/ToshibaLED_PX4.cpp b/libraries/AP_Notify/ToshibaLED_PX4.cpp index c646a49eb6..4abb0036b8 100644 --- a/libraries/AP_Notify/ToshibaLED_PX4.cpp +++ b/libraries/AP_Notify/ToshibaLED_PX4.cpp @@ -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; }