From 3349361f6b138e9aeb7661ce973e87feee1770ca Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Wed, 7 Sep 2022 18:16:42 -0400 Subject: [PATCH] tunerstudio: restore settings write command (#148) Co-authored-by: Andrey Gusakov --- firmware/console/binary/tunerstudio.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 4260b56..4825e54 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -235,6 +235,9 @@ void TunerStudio::handleWriteChunkCommand(TsChannelBase* tsChannel, ts_response_ return; } + uint8_t * addr = (uint8_t *) (getWorkingPageAddr() + offset); + memcpy(addr, content, count); + sendOkResponse(tsChannel, mode); }