Commit 73c03d02 authored by Micha Mueller's avatar Micha Mueller
Browse files

Tiny fix to BACnetClient

parent 54b86d00
......@@ -145,9 +145,7 @@ uint64_t BACnetClient::readProperty(uint32_t deviceObjInstance, uint32_t objInst
BACNET_ADDRESS destRec = { 0 };
BACNET_NPDU_DATA npdu_dataRec = { 0 };
#ifdef DEBUG
LOG(debug) << "BACnet: Protocol Version = " << (unsigned) RecBuf[0];
#endif
//LOG(debug) << "BACnet: Protocol Version = " << (unsigned) RecBuf[0];
apdu_offset = npdu_decode(&RecBuf[0], &destRec, &src, &npdu_dataRec);
if (npdu_data.network_layer_message) {
......@@ -173,7 +171,7 @@ uint64_t BACnetClient::readProperty(uint32_t deviceObjInstance, uint32_t objInst
throw std::runtime_error("Invoke ID was not freed");
}
return 0;
return _presentValue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment