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

struct osdp_event_cardread length field unit #26

Closed z8a closed 4 years ago

z8a commented 4 years ago

In the comment the field unit is bytes while it's bits.

sidcha commented 4 years ago

Actually, data is in bits if format is OSDP_CARD_FMT_RAW_* or bytes when format is OSDP_CARD_FMT_ASCII. I'll update the comment to indicate this.

Thanks!