Skip to content

Commit

Permalink
Correction for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas-Luoyi committed Nov 20, 2024
1 parent 7e17f9e commit 7621a8e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lua/frsky/RB25_S/RB25S_Calibration/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local function create()

local sensor = sport.getSensor({appIdStart=0xF10, appIdEnd=0xF1F});

bitmap = lcd.loadBitmap("/scripts/RB25S_Calibration/cali_"..step..".png")
bitmap = lcd.loadBitmap("cali_"..step..".png")

return {sensor=sensor}
end
Expand Down Expand Up @@ -92,11 +92,11 @@ local function wakeup(widget)
if fieldId == 0x60 then
if step == 5 then
calibrationState = CALIBRATION_OK
bitmap = lcd.loadBitmap("/scripts/RB25S_Calibration/cali_ok.png")
bitmap = lcd.loadBitmap("cali_ok.png")
else
calibrationState = CALIBRATION_INIT
step = (step + 1) % 6
bitmap = lcd.loadBitmap("/scripts/RB25S_Calibration/cali_"..step..".png")
bitmap = lcd.loadBitmap("cali_"..step..".png")
end
lcd.invalidate()
end
Expand Down
6 changes: 3 additions & 3 deletions lua/frsky/RB35_S/RB35S_Calibration/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local function create()

local sensor = sport.getSensor({appIdStart=0xF00, appIdEnd=0xF0F});

bitmap = lcd.loadBitmap("/scripts/RB35S_Calibration/cali_"..step..".png")
bitmap = lcd.loadBitmap("cali_"..step..".png")

return {sensor=sensor}
end
Expand Down Expand Up @@ -92,11 +92,11 @@ local function wakeup(widget)
if fieldId == 0x60 then
if step == 5 then
calibrationState = CALIBRATION_OK
bitmap = lcd.loadBitmap("/scripts/RB35S_Calibration/cali_ok.png")
bitmap = lcd.loadBitmap("cali_ok.png")
else
calibrationState = CALIBRATION_INIT
step = (step + 1) % 6
bitmap = lcd.loadBitmap("/scripts/RB35S_Calibration/cali_"..step..".png")
bitmap = lcd.loadBitmap("cali_"..step..".png")
end
lcd.invalidate()
end
Expand Down
6 changes: 3 additions & 3 deletions lua/frsky/SR6MiniE_Cali/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ local function create()
end
end)

bitmap = lcd.loadBitmap("/scripts/SR6MiniE_Cali/cali_"..step..".png")
bitmap = lcd.loadBitmap("cali_"..step..".png")

return {sensor=sensor}
end
Expand Down Expand Up @@ -97,11 +97,11 @@ local function wakeup(widget)
if fieldId == 0x60 then
if step == 5 then
calibrationState = CALIBRATION_OK
bitmap = lcd.loadBitmap("/scripts/SR6MiniE_Cali/cali_ok.png")
bitmap = lcd.loadBitmap("cali_ok.png")
else
calibrationState = CALIBRATION_INIT
step = (step + 1) % 6
bitmap = lcd.loadBitmap("/scripts/SR6MiniE_Cali/cali_"..step..".png")
bitmap = lcd.loadBitmap("cali_"..step..".png")
end
lcd.invalidate()
end
Expand Down

0 comments on commit 7621a8e

Please sign in to comment.