Little mistake fix
This commit is contained in:
BIN
__pycache__/protocol_kx.cpython-39.pyc
Normal file
BIN
__pycache__/protocol_kx.cpython-39.pyc
Normal file
Binary file not shown.
5
kx.py
5
kx.py
@@ -49,7 +49,7 @@ class KX:
|
|||||||
|
|
||||||
def writeToFlashK(self):
|
def writeToFlashK(self):
|
||||||
messageK = can.Message(arbitration_id=0x2BB, data=[self.sbl_id, 0, 0,
|
messageK = can.Message(arbitration_id=0x2BB, data=[self.sbl_id, 0, 0,
|
||||||
protocol_kx.KX_FLAG_SEND], is_extended_id=False)
|
protocol_kx.KX_FLAG_WRITE_REQ], is_extended_id=False)
|
||||||
try:
|
try:
|
||||||
self.can0.send(messageK)
|
self.can0.send(messageK)
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
@@ -59,9 +59,8 @@ class KX:
|
|||||||
|
|
||||||
|
|
||||||
def send_test_source_enable(self, enabaled):
|
def send_test_source_enable(self, enabaled):
|
||||||
msg = protocol_kx.CANMsgK(self.sbl_id, 0, protocol_kx.KX_FLAG_WRITE_REQ, K)
|
|
||||||
messageK = can.Message(arbitration_id=0x2BB, data=[self.sbl_id, protocol_kx.KDescription.K_TEST_SOURCES_ENABLED, 0,
|
messageK = can.Message(arbitration_id=0x2BB, data=[self.sbl_id, protocol_kx.KDescription.K_TEST_SOURCES_ENABLED, 0,
|
||||||
protocol_kx.KX_FLAG_WRITE_REQ, 0, 0, 0, enabaled], is_extended_id=False)
|
protocol_kx.KX_FLAG_SEND, 0, 0, 0, enabaled], is_extended_id=False)
|
||||||
self.can0.send(messageK)
|
self.can0.send(messageK)
|
||||||
self.sendK()
|
self.sendK()
|
||||||
self.writeToFlashK()
|
self.writeToFlashK()
|
||||||
|
|||||||
Reference in New Issue
Block a user