summaryrefslogtreecommitdiff
path: root/src/components/ble/FSService.h
diff options
context:
space:
mode:
authorTim Keller <geekboy1011@gmail.com>2021-10-21 04:02:50 (GMT)
committerTim Keller <geekboy1011@gmail.com>2021-12-10 01:18:57 (GMT)
commitfaa05eb57b7d6214e53d0b147a796793496a89ae (patch)
tree5a988f1c819c88cdd29235fbfcd31fc0e87666f0 /src/components/ble/FSService.h
parent6393a17d7402b92e00cd748bc7e901ba053135de (diff)
Actually fix memory corruption, seems stable now
ListDir MKDIR delete all seem to work Co-authored-by: Iambian <Iambian@users.noreply.github.com>
Diffstat (limited to 'src/components/ble/FSService.h')
-rw-r--r--src/components/ble/FSService.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ble/FSService.h b/src/components/ble/FSService.h
index 69ed094..e9c98fb 100644
--- a/src/components/ble/FSService.h
+++ b/src/components/ble/FSService.h
@@ -29,7 +29,7 @@ namespace Pinetime {
static constexpr uint16_t fsVersionId {0x0100};
static constexpr uint16_t fsTransferId {0x0200};
uint16_t fsVersion = {0x0004};
- static constexpr uint8_t maxpathlen = 100;
+ static constexpr uint16_t maxpathlen = 256;
static constexpr ble_uuid16_t fsServiceUuid {
.u {.type = BLE_UUID_TYPE_16},
.value = {0xFEBB}}; // {0x72, 0x65, 0x66, 0x73, 0x6e, 0x61, 0x72, 0x54, 0x65, 0x6c, 0x69, 0x46, 0xBB, 0xFE, 0xAF, 0xAD}};
@@ -47,6 +47,9 @@ namespace Pinetime {
uint16_t versionCharacteristicHandle;
uint16_t transferCharacteristicHandle;
+ // lfs_dir_t dir;
+ // lfs_info info;
+
enum class commands : uint8_t {
INVALID = 0x00,
READ = 0x10,