summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/ble/FSService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ble/FSService.cpp b/src/components/ble/FSService.cpp
index 03d4673d..d82596cb 100644
--- a/src/components/ble/FSService.cpp
+++ b/src/components/ble/FSService.cpp
@@ -176,7 +176,7 @@ int FSService::FSCommandHandler(uint16_t connectionHandle, os_mbuf* om) {
int res = 0;
if (!(res = fs.FileOpen(&f, filepath, LFS_O_RDWR | LFS_O_CREAT))) {
- if (!(res = fs.FileSeek(&f, header->offset))) {
+ if ((res = fs.FileSeek(&f, header->offset) ) >= 0) {
res = fs.FileWrite(&f, header->data, header->dataSize);
}
fs.FileClose(&f);