AdrianCX / pico433mhz

Simple raspberry pi pico 433mhz receiver/transmitter controlled via http
MIT License
75 stars 12 forks source link

problem with intertechno codesend #3

Closed jonesMeUp closed 5 months ago

jonesMeUp commented 5 months ago

A fix for rfdevice.py is needed for (at least) the 24bit rawcode. Sorry for not making a Pull Request, but I don't have much time and didn't test my changes for other settings. This is my change to get the missing leading Zeros in funtion txt_code(...)

        #rawcode = "{{0:{}b}}".format(self.tx_length + 2).format(code)[2:]
        rawcode = "{{0:0{}b}}".format(self.tx_length + 2).format(code)[2:]
AdrianCX commented 5 months ago

Awesome, thanks, ported the change.