Skip to content

Commit

Permalink
update ReadoutSystem for hidfmux firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Mar 21, 2024
1 parent 1e64df9 commit cb3827c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dfmux/python/Housekeeping.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,12 @@ def ProcessBuffered(self, frame):
# avoid overloading the network on the return

found = False
isv4 = False
for board in self.board_serials:
dat = self.tuber[board].GetReply()[0]['result']

boardhk = self.HousekeepingFromJSON(dat)
isv4 = isv4 or boardhk.isv4
hkdata[int(boardhk.serial)] = boardhk

ip, crate, slot = self.board_map[board]
Expand All @@ -149,7 +151,7 @@ def ProcessBuffered(self, frame):

hwmf = core.G3Frame(core.G3FrameType.Wiring)
hwmf['WiringMap'] = hwm
hwmf['ReadoutSystem'] = 'ICE'
hwmf['ReadoutSystem'] = 'ICE4' if isv4 else 'ICE'

if self.hwmf is None:
self.hwmf = hwmf
Expand Down

0 comments on commit cb3827c

Please sign in to comment.