Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
bartei81 committed Dec 28, 2023
1 parent 9ef8c2d commit 8641ebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rotary_controller_python/utils/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ def refresh(self):
registeraddress=self.addresses.base_address,
number_of_registers=self.bytes_count,
)
converted_data = struct.unpack(self.addresses.struct_map, raw_data)
raw_bytes = b"".join(raw_data)
converted_data = struct.unpack(self.addresses.struct_map, raw_bytes)
self.servo_current, self.servo_desired = converted_data[0:2]
self.scale_current = converted_data[2 : 2 + SCALES_COUNT]
self.cycles = converted_data[2 + SCALES_COUNT]

0 comments on commit 8641ebf

Please sign in to comment.