fix: use request ticker for requests

This commit is contained in:
Emerson Rosen-Jones 2026-01-16 22:03:42 -05:00
parent cc95868b29
commit 378f44a977

View file

@ -162,6 +162,7 @@ function print_counts (items)
end end
local main_inv = peripheral.wrap(MAIN_TICKER) local main_inv = peripheral.wrap(MAIN_TICKER)
local request_t = peripheral.wrap(REQUEST_TICKER)
while true do while true do
-- 1. Sum items in inventory and organize by item type -- 1. Sum items in inventory and organize by item type
local items = sum_items(main_inv.stock) local items = sum_items(main_inv.stock)
@ -180,7 +181,7 @@ while true do
else else
-- TODO -- TODO
-- TODO potentially keep requesting until above MAX_NUM -- TODO potentially keep requesting until above MAX_NUM
request_more(main_inv, item_type) request_more(request_t, item_type)
end end
end end