enocean icon indicating copy to clipboard operation
enocean copied to clipboard

Fix for getting base id, when callback is defined

Open DosMaster opened this issue 4 years ago • 1 comments

Fixes issue #107

DosMaster avatar Feb 16 '21 02:02 DosMaster

Also waiting for this PR to be accepted :) For now, I did this:

tmp_communicator = SerialCommunicator(port=serial_path)
tmp_communicator.start()
base_id = tmp_communicator.base_id
if tmp_communicator.is_alive():
    tmp_communicator.stop()
communicator = SerialCommunicator(port=serial_path, callback=receive_callback)
communicator.base_id = base_id

bemble avatar Jun 06 '21 10:06 bemble