Index: scripts/update_package_script/utilities.py =================================================================== diff -u -r2c4faeb6256124837d794dc6c8df27a448ca3f13 -rbfc43b17282fbce6b3e56639f580d11665177bfb --- scripts/update_package_script/utilities.py (.../utilities.py) (revision 2c4faeb6256124837d794dc6c8df27a448ca3f13) +++ scripts/update_package_script/utilities.py (.../utilities.py) (revision bfc43b17282fbce6b3e56639f580d11665177bfb) @@ -3,7 +3,6 @@ import time import can import struct -from time import sleep from enum import Enum, unique from can.interfaces.socketcan.socketcan import SocketcanBus @@ -23,10 +22,12 @@ @unique class SWUpdateCommands(SWUpdateEnum): - SW_UPDATE_START = 0 - SW_UPDATE_ABORT = 1 - SW_UPDATE_VERIFY = 2 - NUM_OF_SW_UPDATE_CMDS = 4 + UPDATE_CMD_START = 0 + UPDATE_CMD_ABORT = 1 + UPDATE_CMD_VERIFY = 2 + UPDATE_CMD_CONFIG_FPGA = 3 + UPDATE_CMD_IDLE = 4 + NUM_OF_SW_UPDATE_CMDS = 5 @unique class CanCommStatus(SWUpdateEnum): @@ -268,7 +269,6 @@ break if len(self._can_listener.raw_can_messages) == 0: continue message = self._can_listener.raw_can_messages.pop(0) - # print("Popped message", message) can_comm_status = CanCommStatus.CAN_COMM_IN_PROGRESS.value # If received the message from the corresponding response message and the message ID count is the same as was sent # then check the CRC of the received message. If passed, check whether the message as acked or not and update the status