I2C Bootloader Test Application in Python

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I2C Bootloader Test Application in Python

846件の閲覧回数
tarun414
Contributor I

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?

タグ(1)
0 件の賞賛
返信
0 返答(返信)