Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
More?
Browse files Browse the repository at this point in the history
  • Loading branch information
ajh123 committed Aug 27, 2022
1 parent c294bf9 commit a4e3040
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions IPvCC/types/ModemInterface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ function ModemInterface:__new(side)
local stats = textutils.unserialiseJSON(h.readAll())
h.close()
if stats ~= nil then
self.tx = stats.tx
self.rx = stats.rx
self.errors = stats.errors
if stats.tx ~= nil then
self.tx = stats.tx
end
if stats.rx ~= nil then
self.rx = stats.rx
end
if stats.errors ~= nil then
self.errors = stats.errors
end
end
end

Expand Down

0 comments on commit a4e3040

Please sign in to comment.