digitaldan/jomnilink

jomnilink extended status for units bug

Closed this issue · 0 comments

Hi Dan,

Seeing as you are getting back into the omnilink world, I though we should look at what I think is a bug in the jomnilink.

We discussed back in late April:
https://community.openhab.org/t/jomnilink-question/27183/2

`Within connection.java, in the

public ObjectStatus reqObjectStatus(int objectType, int startObject, int endObject, boolean extended)
there is the following code:

if (extended) {
msg = sendAndReceive(new ReqObjectStatus(objectType, current, next));
} else {
msg = sendAndReceive(new ReqExtenedObjectStatus(objectType, current, next));
}`

I believe the statements in the if and else should be swapped.