Skip to content

Commit

Permalink
Merge pull request #172 from ligenxxxx/msp-vtx-lowband-invalid
Browse files Browse the repository at this point in the history
fix parse_vtx_band_and_channel
  • Loading branch information
ligenxxxx authored Nov 3, 2023
2 parents 3f21fdf + 2da3dbf commit a7461cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msp_displayport.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ uint8_t parse_vtx_band_and_channel(uint8_t const band, uint8_t const channel) {
return INVALID_CHANNEL;
} else if (band == 6) { // low band
if (channel >= 1 && channel <= 8)
return (channel + 1);
return (channel + 9);
else
return INVALID_CHANNEL;
} else {
Expand Down

0 comments on commit a7461cb

Please sign in to comment.