Skip to content

Commit

Permalink
Dont display a flight mode of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Feb 28, 2023
1 parent c1fa835 commit 0d4b76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WIDGETS/ELRST/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ local function drawRssiLq(widget, tlm, Y)
-- LQ on separate line
lcd.drawText(1, Y + 1, "LQ " .. tostring(tlm.rqly) .. "%", COLOR_THEME_SECONDARY1)
-- FMode
if tlm.fmode then
if tlm.fmode and tlm.fmode ~= 0 then
-- 1up on the right, fullscreen in the center
if widget.size == 1 then
lcd.drawText(widget.zw - 13, Y + 1, tlm.fmode, COLOR_THEME_SECONDARY1 + RIGHT)
Expand Down

0 comments on commit 0d4b76b

Please sign in to comment.