Index: DialityCoreCanProtocol.py =================================================================== diff -u -re0254e59354475c1e7c95ac4c0ff033a33d98fd7 -r678ba7efb2e019c266a119500e572ae5c27b369c --- DialityCoreCanProtocol.py (.../DialityCoreCanProtocol.py) (revision e0254e59354475c1e7c95ac4c0ff033a33d98fd7) +++ DialityCoreCanProtocol.py (.../DialityCoreCanProtocol.py) (revision 678ba7efb2e019c266a119500e572ae5c27b369c) @@ -338,6 +338,7 @@ class DenaliCanMessenger: START_BYTE = DenaliMessage.START_BYTE + DIALIN_MSG_RESP_TO = 1 # number of seconds to wait for a response to a sent command def __init__(self, can_interface='can0'): """ @@ -496,7 +497,7 @@ else: self.__sync_response_dictionary[channel_id] = {message_id: function} - def send(self, built_message, time_out=1): + def send(self, built_message, time_out=DIALIN_MSG_RESP_TO): """ sends can_packet to channel_id. @@ -547,6 +548,8 @@ if self.__dialinCommandResponseMessage is not None: msg_sent = True + elif time_out == 0: + msg_sent = True else: print("No response. Re-sending message.")