Hi,
I'm testing i2c bootloader test application in python, I've test successfully in with uart communication.
Now, I need test with i2c, where I see weird python if compare issue.
def sendUnlockCmd(self,size,data):
if resp = = self.BL_RESP_OK:
print("match")
else
print("no match")
I receive i2c message as response in the resp which prints P(80,0x50) on success and self.BLRESP_OK = 80(0x50).
I received correct value but always braching to else condition. it happens only i2c smbus. Can someone explain why is it fails?