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
134 stars 71 forks source link

Self adapting to mark or not mark #34

Closed z8a closed 3 years ago

z8a commented 3 years ago

To manage mark or not mark condition (I've both on the same connection) and without change too much your software I've modified osdp_cp.c (v1.3.0) in this way:

I think you could do better. I cannot use the CONFIG_OSDP_SKIP_MARK_BYTE switch because I've both the conditions.