summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorTim Keller <geekboy1011@gmail.com>2021-11-21 06:33:24 +0000
committerTim Keller <geekboy1011@gmail.com>2021-12-10 01:18:57 +0000
commitb9a2db1a49976cbfe92a9941bce17ffdbae7d0b3 (patch)
treee9118d77c32a1e91a29e3065d52df2d7c0a8a1fb /src/components
parentd1e9aa107617565b456f05e20e9468ab270d323e (diff)
Fix large file support that broke due to a refactor.
Diffstat (limited to 'src/components')
-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);