goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
138 stars 71 forks source link

REPLY_COM structure has address missing #8

Closed z8a closed 4 years ago

z8a commented 4 years ago

According specification it should be:
case REPLY_COM: buf[len++] = reply->id; buf[len++] = p->address; buf[len++] = byte_0(p->baud_rate); buf[len++] = byte_1(p->baud_rate); buf[len++] = byte_2(p->baud_rate); buf[len++] = byte_3(p->baud_rate); break;

sidcha commented 4 years ago

@z8a, Thanks for reporting.