mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
PG CLI additions 5
This commit is contained in:
parent
bef5a08d8a
commit
1e529a96b9
8 changed files with 212 additions and 113 deletions
|
@ -1663,7 +1663,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
|||
uint16_t tmp = sbufReadU16(src);
|
||||
#if defined(USE_RTC6705)
|
||||
if (tmp < 40)
|
||||
vtxConfig()->vtx_channel = tmp;
|
||||
vtxConfigMutable()->vtx_channel = tmp;
|
||||
if (current_vtx_channel != vtxConfig()->vtx_channel) {
|
||||
current_vtx_channel = vtxConfig()->vtx_channel;
|
||||
rtc6705_soft_spi_set_channel(vtx_freq[current_vtx_channel]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue