diff options
| author | Tim Keller <geekboy1011@gmail.com> | 2021-11-21 06:33:24 (GMT) |
|---|---|---|
| committer | Tim Keller <geekboy1011@gmail.com> | 2021-12-10 01:18:57 (GMT) |
| commit | b9a2db1a49976cbfe92a9941bce17ffdbae7d0b3 (patch) | |
| tree | e9118d77c32a1e91a29e3065d52df2d7c0a8a1fb /src/components/ble | |
| parent | d1e9aa107617565b456f05e20e9468ab270d323e (diff) | |
Fix large file support that broke due to a refactor.
Diffstat (limited to 'src/components/ble')
| -rw-r--r-- | src/components/ble/FSService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ble/FSService.cpp b/src/components/ble/FSService.cpp index 03d4673..d82596c 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); |
