]> git.basschouten.com Git - openhab-addons.git/commit
[upb] Fix retry logic (#11342)
authorMarcus Better <marcusb@users.noreply.github.com>
Sat, 9 Oct 2021 14:29:09 +0000 (10:29 -0400)
committerGitHub <noreply@github.com>
Sat, 9 Oct 2021 14:29:09 +0000 (16:29 +0200)
commitd6748cd481a96b80c6c6206e87eca8cf51506103
tree95890f2c7cde6ddd792b91a4efccd3f118b5a6e6
parentbecb8a48f4ddfc682fc3ad86e3c46f716a3658e5
[upb] Fix retry logic (#11342)

* [upb] Fix retry logic

The retry logic was broken so it never retried. This fixes it and adds
unit tests for the serial communication and retry behavior.

Signed-off-by: Marcus Better <marcus@better.se>
* Remove excessive log

Signed-off-by: Marcus Better <marcus@better.se>
bundles/org.openhab.binding.upb/src/main/java/org/openhab/binding/upb/internal/handler/SerialIoThread.java
bundles/org.openhab.binding.upb/src/main/java/org/openhab/binding/upb/internal/handler/SerialPIMHandler.java
bundles/org.openhab.binding.upb/src/test/java/org/openhab/binding/upb/internal/SerialIoThreadTest.java [new file with mode: 0644]