Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prevent drawScreen() from running when main menu is visible
Prevents it from interfering with scrollPixelsY causing scrolling to not work properly on the main menu. No need for it to run when the main menu is visible either.
  • Loading branch information
klutvott123 committed Oct 27, 2019
commit 466fce4ef93e2b3df78a7663011cb6d41ff00cbe
4 changes: 3 additions & 1 deletion src/SCRIPTS/BF/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ function run_ui(event)
if TEXT_BGCOLOR then
lcd.drawFilledRectangle(0, 0, LCD_W, LCD_H, TEXT_BGCOLOR)
end
drawScreen()
if currentState ~= pageStatus.mainMenu then
drawScreen()
end
if protocol.rssi() == 0 then
lcd.drawText(radio.NoTelem[1],radio.NoTelem[2],radio.NoTelem[3],radio.NoTelem[4])
end
Expand Down