summaryrefslogtreecommitdiff
path: root/src/components/ble/FSService.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ble/FSService.h')
-rw-r--r--src/components/ble/FSService.h20
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;
+ };
+
};
}
}