Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

RFXCOM clear buffer after reset command #4032

Merged
merged 1 commit into from
Feb 19, 2016

Conversation

ivanfmartinez
Copy link
Contributor

This PR clear receiving buffer after sending reset command.
This solves problem when openhab was restated and messages are received from rfxcom during startup and the protocol becomes unsynchronized .
As the RFXCOM protocol does not have any king of start byte, any byte that is != 0 is considered as start.

Now everytime it starts in correct state.

@Speederc
Copy link
Contributor

OK for me !

@teichsta teichsta modified the milestones: 1.9.0, 1.8.2 Feb 19, 2016
teichsta added a commit that referenced this pull request Feb 19, 2016
RFXCOM clear buffer after reset command
@teichsta teichsta merged commit ccf1607 into openhab:master Feb 19, 2016
teichsta pushed a commit that referenced this pull request Feb 19, 2016
@teichsta
Copy link
Member

Thanks @ivanfmartinez @Speederc! Also cherry-picked onto 1.8.2

@ivanfmartinez ivanfmartinez deleted the rfxcom_reset_buffer2 branch February 19, 2016 20:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants