GCS_Common: fix compiler warnings on missing parentheses

This commit is contained in:
Peter Barker 2019-06-11 12:39:26 +10:00 committed by Peter Barker
parent 6ed09d83f3
commit f385a4a329

View File

@ -1661,9 +1661,9 @@ void GCS_MAVLINK::send_message(enum ap_message id)
save_signing_timestamp(false);
// update the mask of all streaming channels
if (is_streaming()) {
GCS_MAVLINK::chan_is_streaming |= (1U<<chan-MAVLINK_COMM_0);
GCS_MAVLINK::chan_is_streaming |= (1U<<(chan-MAVLINK_COMM_0));
} else {
GCS_MAVLINK::chan_is_streaming &= ~(1U<<chan-MAVLINK_COMM_0);
GCS_MAVLINK::chan_is_streaming &= ~(1U<<(chan-MAVLINK_COMM_0));
}
}