mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-08-03 18:06:04 -04:00
Adding energy specific status
This commit is contained in:
parent
aa41d187fd
commit
61d211b1d5
@ -2,7 +2,6 @@ Component = require("component")
|
||||
Event = require("event")
|
||||
local uc = require("unicode")
|
||||
local utility = {}
|
||||
local modem = Component.modem
|
||||
|
||||
function utility.machine(address)
|
||||
local machineAddress = Component.get(address)
|
||||
@ -71,7 +70,7 @@ end
|
||||
|
||||
function utility.componentChange(broadcastPort)
|
||||
local function sendAddress(event, address, type)
|
||||
modem.broadcast(broadcastPort, event, address, type)
|
||||
Component.modem.broadcast(broadcastPort, event, address, type)
|
||||
end
|
||||
Event.listen("component_added", sendAddress)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user