mirror of https://github.com/ArduPilot/ardupilot
AP_Notify: revert wrong commit 228058e089
Also change the order of logical OR so that led_write in UAVCAN_RGB_LED is called for all UAVCAN instances and not only first one
This commit is contained in:
parent
b29369eb82
commit
f468602baf
|
@ -61,7 +61,7 @@ bool UAVCAN_RGB_LED::hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue)
|
||||||
if (hal.can_mgr[i] != nullptr) {
|
if (hal.can_mgr[i] != nullptr) {
|
||||||
AP_UAVCAN *uavcan = hal.can_mgr[i]->get_UAVCAN();
|
AP_UAVCAN *uavcan = hal.can_mgr[i]->get_UAVCAN();
|
||||||
if (uavcan != nullptr) {
|
if (uavcan != nullptr) {
|
||||||
success |= uavcan->led_write(_led_index, red, green, blue);
|
success = uavcan->led_write(_led_index, red, green, blue) || success;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue