diff --git a/PowerManager.lua b/PowerManager.lua index 35e94dc..cf34e88 100644 --- a/PowerManager.lua +++ b/PowerManager.lua @@ -7,6 +7,8 @@ local event = require( "event" ) local oldW, oldH = gpu.getResolution() local newW = 160 local newH = 50 +local numberOfPanels = 2 +local panelWidth = (newW / numberOfPanels) gpu.setResolution(newW, newH) function clearScreen() @@ -111,7 +113,6 @@ function getTotal() end function drawDesktop() - local halfWidth = newW / 2 drawLine(halfWidth, 3, 1, 40, 0xffffff) drawLine(1, 43, newW, 1, 0xffffff) gpu.set(1, 42, "Speicherzellen") diff --git a/updater.lua b/updater.lua index df2ac25..31aa3c6 100644 --- a/updater.lua +++ b/updater.lua @@ -5,7 +5,7 @@ local abfrage = io.read() if abfrage == "Y" then print("Update und Installationsprogramm werden abgerufen...") os.execute("gitrepo seesberger/PowerManager /home/PowerManager") - dofile("/home/installer.lua") + dofile("/home/PowerManager/installer.lua") else print("Ohne Update fortfahren...") os.sleep(1)