Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3ea553e

Browse files
Display message if page not available
1 parent e2597af commit 3ea553e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/SCRIPTS/BF/ui.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ local function createPopupMenu()
9797
end
9898

9999
local function processMspReply(cmd,rx_buf,err)
100-
if not Page or not rx_buf orerrthen
100+
if not Page or not rx_buf then
101101
elseif cmd == Page.write then
102102
if Page.eepromWrite then
103103
eepromWrite()
@@ -109,6 +109,9 @@ local function processMspReply(cmd,rx_buf,err)
109109
rebootFc()
110110
end
111111
invalidatePages()
112+
elseif cmd == Page.read and err then
113+
Page.fields = { { x = 6, y = radio.yMinLimit, value = "", ro = true } }
114+
Page.labels = { { x = 6, y = radio.yMinLimit, t = "N/A" } }
112115
elseif cmd == Page.read and #rx_buf > 0 then
113116
Page.values = rx_buf
114117
for i=1,#Page.fields do

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /