Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions template/Board/Corstone-300/vsi/python/sdsio.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# ---------------------------------------------------------------------------- #
# SDSIO server-compatible stream implementation #
# ---------------------------------------------------------------------------- #
SDSIO_VSI_VERSION = "3.0.1-dev5"
SDSIO_VSI_VERSION = "3.0.1-dev6"

class StreamInfo(NamedTuple):
name: str = None
Expand Down Expand Up @@ -831,7 +831,7 @@ def _info(self, flags: int, idle_rate: int, err_data: bytes):
logger.info(f"{idle_rate}% idle.")
self._info_IdleRate = idle_rate
if err_data:
_status = int.from_bytes(err_data[0:4],'little')
_status = int.from_bytes(err_data[0:4], 'little', signed=True)
_line = int.from_bytes(err_data[4:8],'little')
_err_mgs = err_data[8:]
if _status == 0:
Expand Down
4 changes: 2 additions & 2 deletions template/Board/Corstone-320/vsi/python/sdsio.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# ---------------------------------------------------------------------------- #
# SDSIO server-compatible stream implementation #
# ---------------------------------------------------------------------------- #
SDSIO_VSI_VERSION = "3.0.1-dev5"
SDSIO_VSI_VERSION = "3.0.1-dev6"

class StreamInfo(NamedTuple):
name: str = None
Expand Down Expand Up @@ -831,7 +831,7 @@ def _info(self, flags: int, idle_rate: int, err_data: bytes):
logger.info(f"{idle_rate}% idle.")
self._info_IdleRate = idle_rate
if err_data:
_status = int.from_bytes(err_data[0:4],'little')
_status = int.from_bytes(err_data[0:4], 'little', signed=True)
_line = int.from_bytes(err_data[4:8],'little')
_err_mgs = err_data[8:]
if _status == 0:
Expand Down
4 changes: 2 additions & 2 deletions utilities/sdsio-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import termios
import tty

SDSIO_SERVER_VERSION = "3.0.1-dev5"
SDSIO_SERVER_VERSION = "3.0.1-dev6"

class StreamInfo(NamedTuple):
name: str = None
Expand Down Expand Up @@ -1241,7 +1241,7 @@ def _info(self, flags: int, idle_rate: int, err_data: bytes):
logger.info(f"{idle_rate}% idle.")
self._info_IdleRate = idle_rate
if err_data:
_status = int.from_bytes(err_data[0:4],'little')
_status = int.from_bytes(err_data[0:4], 'little', signed=True)
_line = int.from_bytes(err_data[4:8],'little')
_err_mgs = err_data[8:]
if _status == 0:
Expand Down
Loading