theheraldproject / herald-for-cpp

Herald for C++ - Reliable mobile Bluetooth communications - Native library & test apps
https://heraldprox.io
Other
13 stars 10 forks source link

Fixes #52. Clears newly allocated payload temporary copy once used. #73

Closed adamfowleruk closed 3 years ago

adamfowleruk commented 3 years ago

Zephyr requires a char* allocation to copy to its attribute cache. Usage is correct. We now also clear up the temporary value. I have confirmed Zephyr doesn't do this itself. Tested on nRF52832DK. Signed-off-by: Adam Fowler adam@adamfowler.org