AP_Relay: send relay status for all relays with valid functions

This commit is contained in:
Iampete1 2024-01-19 00:26:09 +00:00 committed by Andrew Tridgell
parent 92ea15f9c3
commit ad7b8b001b
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ bool AP_Relay::send_relay_status(const GCS_MAVLINK &link) const
uint16_t present_mask = 0;
uint16_t on_mask = 0;
for (uint8_t i=0; i<ARRAY_SIZE(_params); i++) {
if (!enabled(i)) {
if (!function_valid(_params[i].function)) {
continue;
}
const uint16_t relay_bit_mask = 1U << i;