Skip to content

Commit

Permalink
fix: indefinite when in receiver option
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc committed Sep 21, 2023
1 parent a050629 commit b6e6d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/telemetry/frsky_pxx2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static void processGetHardwareInfoFrame(uint8_t module, const uint8_t * frame)
POPUP_WARNING(STR_MODULE_UPGRADE_ALERT);
}
}
else if (index < PXX2_MAX_RECEIVERS_PER_MODULE && modelId < DIM(PXX2ReceiversNames)) {
else if (index < PXX2_MAX_RECEIVERS_PER_MODULE) {
memcpy(&destination->receivers[index].information, &frame[4], length);
destination->receivers[index].timestamp = get_tmr10ms();
if (destination->receivers[index].information.capabilities & ~((1 << RECEIVER_CAPABILITY_COUNT) - 1))
Expand Down

0 comments on commit b6e6d90

Please sign in to comment.