Skip to content

Commit

Permalink
Cast us4OEM firmware version to unsigned value.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarosik committed Apr 10, 2022
1 parent bf3dd3e commit 6c1841f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/python/arrus/devices/us4oem.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ctypes
from arrus.devices.device import Device, DeviceId, DeviceType

DEVICE_TYPE = DeviceType("Us4OEM")
Expand All @@ -14,7 +15,7 @@ def get_device_id(self) -> DeviceId:
return self._device_id

def get_firmware_version(self) -> int:
return self._handle.getFirmwareVersion()
return ctypes.c_ulong(self._handle.getFirmwareVersion()).value

def get_tx_firmware_version(self) -> int:
return self._handle.getTxFirmwareVersion()
return ctypes.c_ulong(self._handle.getTxFirmwareVersion()).value

0 comments on commit 6c1841f

Please sign in to comment.