that was a stack not a queue, nice

This commit is contained in:
Mikayla Fischler 2022-04-27 16:24:28 -04:00
parent d40937b467
commit 82726520b8
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ os.loadAPI("config.lua")
os.loadAPI("plc.lua")
os.loadAPI("threads.lua")
local R_PLC_VERSION = "alpha-v0.4.2"
local R_PLC_VERSION = "alpha-v0.4.3"
local print = util.print
local println = util.println

View File

@ -19,7 +19,7 @@ os.loadAPI("dev/boiler_rtu.lua")
os.loadAPI("dev/imatrix_rtu.lua")
os.loadAPI("dev/turbine_rtu.lua")
local RTU_VERSION = "alpha-v0.4.2"
local RTU_VERSION = "alpha-v0.4.3"
local print = util.print
local println = util.println

View File

@ -41,7 +41,7 @@ function new()
local pop = function ()
if #queue > 0 then
return table.remove(queue)
return table.remove(queue, 1)
else
return nil
end