Fix config write (#13503)
commitaa9c4ad6c08e29a85f9de27be06a6fee693ff538
authorPetr Ledvina <ledvinap@gmail.com>
Tue, 9 Apr 2024 19:12:34 +0000 (9 21:12 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Apr 2024 19:12:34 +0000 (9 21:12 +0200)
treeb056b65ff7ad710dee8e7ee793d4b9b55c19c7ae
parent54570328388190eb48900e0db6f2f271192019a7
Fix config write (#13503)

* Config - add error checking into config_streamer.c,

CONFIG_STREAMER_BUFFER_SIZE does not match actually writen data in
some cases

* Config - fix buffer read ovefrflow

CONFIG_IN_RAM and CONFIG_IN_SDCARD used 4 byte byffer, but 32 bytes
got actually copied
CONFIG_IN_MEMORY_MAPPED_FLASH used 8byte buffer, but  but 32 bytes
got actually copied

* Config - add write functions into header

---------

Co-authored-by: Petr Ledvina <ledvinap@hp124.ekotip.cz>
src/main/config/config_eeprom.h
src/main/config/config_streamer.c
src/main/config/config_streamer.h