Skip to content

Commit cb28ee2

Browse files
committed
Don't wait for timeout when changing vtx channels
Before this change, the 3 second timeout would be hit before vtx changes were read
1 parent 0d8b01e commit cb28ee2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

common/ui.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,12 @@ local function processMspReply(cmd,rx_buf)
116116
end
117117

118118
-- ignore replies to write requests for now
119-
if cmd == page.write then
120-
if cmd ~= MSP_VTX_SET_CONFIG then
121-
mspSendRequest(MSP_EEPROM_WRITE,{})
122-
end
119+
if cmd == page.write and cmd ~= MSP_VTX_SET_CONFIG then
120+
mspSendRequest(MSP_EEPROM_WRITE,{})
123121
return
124122
end
125123

126-
if cmd == MSP_EEPROM_WRITE then
124+
if cmd == MSP_EEPROM_WRITE or cmd == MSP_VTX_SET_CONFIG then
127125
gState = PAGE_DISPLAY
128126
page.values = nil
129127
saveTS = 0

0 commit comments

Comments
 (0)