File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ local function processMspReply(cmd,rx_buf)
105
105
if cmd == nil or rx_buf == nil then
106
106
return
107
107
end
108
+ if Page == nil then
109
+ return
110
+ end
108
111
if cmd == Page .write then
109
112
if Page .eepromWrite then
110
113
eepromWrite ()
@@ -349,10 +352,12 @@ function run_ui(event)
349
352
elseif event == EVT_VIRTUAL_NEXT or event == EVT_VIRTUAL_NEXT_REPT then
350
353
incLine (1 )
351
354
elseif event == EVT_VIRTUAL_ENTER then
352
- local field = Page .fields [currentLine ]
353
- local idx = field .i or currentLine
354
- if Page .values and Page .values [idx ] and (field .ro ~= true ) then
355
- currentState = pageStatus .editing
355
+ if Page then
356
+ local field = Page .fields [currentLine ]
357
+ local idx = field .i or currentLine
358
+ if Page .values and Page .values [idx ] and (field .ro ~= true ) then
359
+ currentState = pageStatus .editing
360
+ end
356
361
end
357
362
elseif event == EVT_VIRTUAL_EXIT then
358
363
if isTelemetryScript then
You can’t perform that action at this time.
0 commit comments