mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-08-03 18:06:04 -04:00
Fixing setup and main loop
Adding libraries to the home folder waiting 0 seconds on main loop
This commit is contained in:
parent
61d211b1d5
commit
6b69730059
@ -17,7 +17,7 @@ local function exec(address, name)
|
|||||||
|
|
||||||
local state = {}
|
local state = {}
|
||||||
if (currentEnergy == maximumEnergy) then
|
if (currentEnergy == maximumEnergy) then
|
||||||
state = {name = changeRate .. " EU/s", color = Colors.workingColor}
|
state = {name = (changeRate > 0 and "+" or "") .. changeRate .. " EU/s", color = Colors.workingColor}
|
||||||
elseif currentEnergy == 0 then
|
elseif currentEnergy == 0 then
|
||||||
state = {name = changeRate .. " EU/s", color = Colors.errorColor}
|
state = {name = changeRate .. " EU/s", color = Colors.errorColor}
|
||||||
elseif changeRate > 0 then
|
elseif changeRate > 0 then
|
||||||
|
@ -66,7 +66,7 @@ Page.setup(energyBufferAddresses.batteryBuffer1)
|
|||||||
|
|
||||||
while true do
|
while true do
|
||||||
Page.update()
|
Page.update()
|
||||||
os.sleep(0.2)
|
os.sleep(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
@ -27,6 +27,7 @@ shell.execute("tar -xf InfOS.tar")
|
|||||||
shell.execute("rm -f InfOS.tar")
|
shell.execute("rm -f InfOS.tar")
|
||||||
|
|
||||||
shell.setWorkingDirectory("/home/")
|
shell.setWorkingDirectory("/home/")
|
||||||
|
shell.execute("cp -ru InfOS/Libraries lib")
|
||||||
shell.execute("rm -f .shrc")
|
shell.execute("rm -f .shrc")
|
||||||
shell.execute("cp InfOS/.shrc .shrc")
|
shell.execute("cp InfOS/.shrc .shrc")
|
||||||
shell.execute("rm -f setup.lua")
|
shell.execute("rm -f setup.lua")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user