The function set_address(self, channel) in the crazyradio.py module has a hard coded requirement for the hex address to be 5 bytes long. However, each character in a hex address is 2 bytes, and the default address 0xE7E7E7E7E7 is 10 characters long. Therefore, the hex address length is actually 20 bytes long. The following is in crazyradio.py:
Code: Select all
def set_address(self, address):
""" Set the radio address to be used"""
if len(address) != 5:
raise Exception("Crazyradio: the radio address shall be 5"
" bytes long")
_send_vendor_setup(self.handle, SET_RADIO_ADDRESS, 0, 0, address)