#200 pocket alarm/status informational display, ECAM style

This commit is contained in:
Mikayla
2024-05-22 21:55:59 +00:00
parent 76e85da9d5
commit a268a770f2
7 changed files with 400 additions and 163 deletions

View File

@@ -324,7 +324,7 @@ function pocket.comms(version, nic, sv_watchdog, api_watchdog)
iocontrol.record_facility_data(packet.data)
end
elseif packet.type == CRDN_TYPE.API_GET_UNIT then
if _check_length(packet, 9) then
if _check_length(packet, 11) and type(packet.data[1]) == "number" and iocontrol.get_db().units[packet.data[1]] then
iocontrol.record_unit_data(packet.data)
end
else _fail_type(packet) end