peterhinch / micropython_ir

Nonblocking device drivers to receive from IR remotes and for IR "blaster" apps.
MIT License
240 stars 51 forks source link

ir_tx/philips.py - data value validation #17

Closed max-m-s closed 2 years ago

max-m-s commented 2 years ago

In RC5, I believe up to 7F (127) should be acceptable. It seems to work if it's changed from 3F:

class RC5(IR):
    valid = (0x1f, 0x3f, 1)  # Max addr, data, toggle
peterhinch commented 2 years ago

You are right - thank you. I supported RC5X in the code but forgot to change the validation. Will fix.