diff --git a/src/main/python/ayab/engine/communication_mock.py b/src/main/python/ayab/engine/communication_mock.py index 748327c3..337dd820 100644 --- a/src/main/python/ayab/engine/communication_mock.py +++ b/src/main/python/ayab/engine/communication_mock.py @@ -67,7 +67,7 @@ def open_serial(self, portname=None) -> bool: def req_info(self) -> None: """Send a request for API version information.""" - cnfInfo = bytes([Token.cnfInfo.value, 6, 1, 0]) # APIv6, FWv1.0 + cnfInfo = bytes([Token.cnfInfo.value, 6, 1, 0, 0, 0]) # APIv6, FW v1.0.0 self.rx_msg_list.append(cnfInfo) def req_init_API6(self, machine_val): diff --git a/src/main/python/ayab/engine/control.py b/src/main/python/ayab/engine/control.py index 260677bd..16aa7c15 100644 --- a/src/main/python/ayab/engine/control.py +++ b/src/main/python/ayab/engine/control.py @@ -132,7 +132,9 @@ def __log_cnfInfo(self, msg): api = msg[1] log = "API v" + str(api) if api >= 5: - log += ", FW v" + str(msg[2]) + "." + str(msg[3]) + log += ", FW v" + str(msg[2]) + "." + str(msg[3]) + "." + str(msg[4]) + if msg[5] is not 0: + log += "-dirty" self.logger.info(log) def cnf_line_API6(self, line_number): diff --git a/src/main/python/ayab/tests/test_communication_mock.py b/src/main/python/ayab/tests/test_communication_mock.py index 84c3fc76..d15d8681 100644 --- a/src/main/python/ayab/tests/test_communication_mock.py +++ b/src/main/python/ayab/tests/test_communication_mock.py @@ -51,7 +51,7 @@ def test_req_start_API6(self): def test_req_info(self): expected_result = (bytes([Token.cnfInfo.value, 6, 1, - 0]), Token.cnfInfo, 6) + 0, 0, 0]), Token.cnfInfo, 6) self.comm_dummy.req_info() bytes_read = self.comm_dummy.update_API6() assert bytes_read == expected_result