mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Notify: update some logic syntax
non-functional change, just the logic easier to read. Converted success = success || blah to success |= blah
This commit is contained in:
parent
b5467bed7f
commit
228058e089
@ -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) {
|
||||
AP_UAVCAN *uavcan = hal.can_mgr[i]->get_UAVCAN();
|
||||
if (uavcan != nullptr) {
|
||||
success = success || uavcan->led_write(_led_index, red, green, blue);
|
||||
success |= uavcan->led_write(_led_index, red, green, blue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user