Skip to content

Fix for getting base id, when callback is defined#118

Open
DosMaster wants to merge 1 commit intokipe:masterfrom
DosMaster:baseid-fix
Open

Fix for getting base id, when callback is defined#118
DosMaster wants to merge 1 commit intokipe:masterfrom
DosMaster:baseid-fix

Conversation

@DosMaster
Copy link

Fixes issue #107

@bemble
Copy link

bemble commented Jun 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants