Skip to content

Commit

Permalink
AP_Relay: send relay status for all relays with valid functions
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and tridge committed Jan 22, 2024
1 parent 92ea15f commit ad7b8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Relay/AP_Relay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ad7b8b0

Please sign in to comment.