Skip to content

Commit

Permalink
maybe the good one ?
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnti authored Apr 18, 2020
1 parent d0e5de2 commit 037a66e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions farl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,10 @@ local function drawGPS(start_x, start_y, coords)
-- lcd.drawPixMap(start_x, start_y, "/test.bmp")
lcd.drawRectangle( start_x, start_y, 44, 10 )
lcd.drawText( start_x + 2, start_y + 2, "GPS coordinates", SMLSIZE )
lcd.drawText(start_x + 5, start_y + 12, coords[0], SMLSIZE)
lcd.drawText(start_x + 5, start_y + 12, coords[1], SMLSIZE)
if (type(coords) == "table") then
lcd.drawText(start_x + 5, start_y + 12, coords["lon"], SMLSIZE)
lcd.drawText(start_x + 5, start_y + 12, coords["lat"], SMLSIZE)
end
end

local function drawVoltageImage(start_x, start_y)
Expand Down

0 comments on commit 037a66e

Please sign in to comment.