From 846dac82feb71b398acb448b8992a3fd57e7a060 Mon Sep 17 00:00:00 2001 From: ZareMate Date: Mon, 6 Jun 2022 20:22:58 +0200 Subject: [PATCH] . --- main/calculator.lua | 2 +- main/startup.lua | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/main/calculator.lua b/main/calculator.lua index bbc4e8b..eb598c4 100644 --- a/main/calculator.lua +++ b/main/calculator.lua @@ -274,7 +274,7 @@ while true do term.setBackgroundColor(colors.black) term.clear() term.setCursorPos(1,1) - break + os.reboot() end elseif events[3] >= 39 and events[3] <= 43 then if events[4] >= 7 and events[4] <= 9 then diff --git a/main/startup.lua b/main/startup.lua index 3bd4d91..f236099 100644 --- a/main/startup.lua +++ b/main/startup.lua @@ -45,8 +45,11 @@ end function AlarmOff() lightSystem("off", colors.red) end +function AllOn() + lightSystem("on", 65407) +end function AllOff() - lightSystem("off", 65535) + lightSystem("off", 65407) end function LightsBack() inLightsMenu = false @@ -101,8 +104,9 @@ lightsMenu={ [4]= { text="Orange Off", handler=OrangeOff }, [5]= { text="Alarm On", handler=AlarmOn }, [6]= { text="Alarm Off", handler=AlarmOff }, - [7]= { text="All Off", handler=AllOff }, - [8]= { text="Back", handler=LightsBack } + [7]= { text="All On", handler=AllOn }, + [8]= { text="All Off", handler=AllOff }, + [9]= { text="Back", handler=LightsBack } } --[[Printing Methods]]--