[BUG] This statement is always true!
catsuryuu opened this issue · 2 comments
catsuryuu commented
RATDecoders/StandAlone/NanoCore.py
Line 180 in 39c2864
Probably should be if str(entry.name) == "RC_DATA" or str(entry.name) == "RCData":
snemes commented
Yeah, nice find. Indeed, this is not how the "or" operator works in Python (or in any programming language to be honest), this is interpreted as (str(entry.name) == "RC_DATA") or ("RCData")
(due to the operator precedence rules). 😄
I have submitted a merge request to fix this.
kevthehermit commented
Thanks, I actually found some time this week to work on converting this to a library with python3 compatibility. Have fixed this in that branch. - https://github.com/kevthehermit/RATDecoders/tree/library