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
128 stars 69 forks source link

Fix regression in Rust binding. Commit 51b626c94bc39242f9793c916471bd… #156

Closed jr-oss closed 5 months ago

jr-oss commented 5 months ago

…adafe24679 increased buffer size to 128 bytes. Adjust binding accordingly.

jr-oss commented 5 months ago

Would it be better to change the sizes this way:?

let mut data = [0; libosdp_sys::OSDP_EVENT_MFGREP_MAX_DATALEN as usize];

I could change the PR to do this for events and commands (3 changes each).

sidcha commented 5 months ago

Yes, that would be better.