fix: use request ticker for requests
This commit is contained in:
parent
cc95868b29
commit
378f44a977
1 changed files with 2 additions and 1 deletions
|
|
@ -162,6 +162,7 @@ function print_counts (items)
|
|||
end
|
||||
|
||||
local main_inv = peripheral.wrap(MAIN_TICKER)
|
||||
local request_t = peripheral.wrap(REQUEST_TICKER)
|
||||
while true do
|
||||
-- 1. Sum items in inventory and organize by item type
|
||||
local items = sum_items(main_inv.stock)
|
||||
|
|
@ -180,7 +181,7 @@ while true do
|
|||
else
|
||||
-- TODO
|
||||
-- TODO potentially keep requesting until above MAX_NUM
|
||||
request_more(main_inv, item_type)
|
||||
request_more(request_t, item_type)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue