2023-04-01 18:53:28 +02:00
|
|
|
import canTest
|
|
|
|
|
2023-04-01 18:55:55 +02:00
|
|
|
|
2023-04-01 18:53:28 +02:00
|
|
|
def ePromTest():
|
2023-04-01 20:35:33 +02:00
|
|
|
print("====================")
|
2023-04-01 18:55:55 +02:00
|
|
|
print("start eprom test")
|
|
|
|
message = [4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
|
|
|
|
canTest.waitForUserInput(True)
|
|
|
|
canTest.sendMessageOnCan(message)
|
|
|
|
answer = canTest.recive()
|
2023-04-01 20:35:33 +02:00
|
|
|
result = answer.data == bytearray(b"iiiBiiii")
|
|
|
|
print("ePromTest result {}".format("PASSED" if result else "FAILED"))
|
2023-04-01 18:53:28 +02:00
|
|
|
|
2023-04-01 18:55:55 +02:00
|
|
|
print("I am done with this shit")
|