diff options
| author | Tim Keller <geekboy1011@gmail.com> | 2021-10-17 23:07:43 (GMT) |
|---|---|---|
| committer | Tim Keller <geekboy1011@gmail.com> | 2021-12-10 01:18:57 (GMT) |
| commit | 3a8e66a52fcc6317a7dffa15cb161f37a645d36c (patch) | |
| tree | 47a7933fff4ba86159068a756b6a9903d6475078 /src/components/ble/FSService.h | |
| parent | eabbbfa373de04d1dc694618d5a9d475f0918592 (diff) | |
Added Delete file
Added FS Stat.
Diffstat (limited to 'src/components/ble/FSService.h')
| -rw-r--r-- | src/components/ble/FSService.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/components/ble/FSService.h b/src/components/ble/FSService.h index a1c42aa..3ca6d93 100644 --- a/src/components/ble/FSService.h +++ b/src/components/ble/FSService.h @@ -66,14 +66,14 @@ namespace Pinetime { }; using ListDirHeader = struct __attribute__((packed)) { - uint8_t command; + commands command; uint8_t padding; uint16_t pathlen; char pathstr[70]; }; using ListDirResponse = struct __attribute__((packed)) { - uint8_t command; + commands command; uint8_t status; uint16_t path_length; uint32_t entry; @@ -85,7 +85,7 @@ namespace Pinetime { }; using MKDirHeader = struct __attribute__((packed)) { - uint8_t command; + commands command; uint8_t padding; uint16_t pathlen; uint32_t padding2; @@ -94,13 +94,25 @@ namespace Pinetime { }; using MKDirResponse = struct __attribute__((packed)) { - uint8_t command; + commands command; uint8_t status; uint32_t padding1; uint16_t padding2; uint64_t modification_time; }; + using DelHeader = struct __attribute__((packed)) { + commands command; + uint8_t padding; + uint16_t pathlen; + char pathstr[70]; + }; + + using DelResponse = struct __attribute__((packed)) { + commands command; + uint8_t status; + }; + }; } } |
