From 00461483e155781281e6c4e5cd8aa42d6b2da22b Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Fri, 9 Feb 2018 08:01:02 -0500 Subject: [PATCH] neural support --- sys/network/snmp.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/network/snmp.lua b/sys/network/snmp.lua index 77fdd15..af79aab 100644 --- a/sys/network/snmp.lua +++ b/sys/network/snmp.lua @@ -146,6 +146,12 @@ local function sendInfo() info.inventory = turtle.getInventory() info.slotIndex = turtle.getSelectedSlot() end + if device.neuralInterface then + info.status = device.neuralInterface.status + if not info.status and device.neuralInterface.getMetaOwner then + info.status = 'health: ' .. device.neuralInterface.getMetaOwner().health + end + end device.wireless_modem.transmit(999, os.getComputerID(), info) end end