Frozenlock / bacure

Clojure wrapper for BACnet4J
10 stars 5 forks source link

Fix for out of service #16

Closed WhittlesJr closed 6 years ago

WhittlesJr commented 6 years ago

:out-of-service is a boolean field. The previous logic would always have it return true when doing a single-read.

I believe the intention was to return true if the coercion resulted in nil, so I went with nil-checking. If that's not necessary, and nil is acceptable, then I'd back out this change and just get rid of the (or ... true) part.