summaryrefslogtreecommitdiff
path: root/src/components/ble/DfuService.h
diff options
context:
space:
mode:
authorFinlay Davidson <finlay.davidson@coderclass.nl>2023-01-07 21:23:15 +0100
committerJF <JF002@users.noreply.github.com>2023-01-09 21:41:21 +0100
commit96165a8541b33baace920e26f062b2e282d644c6 (patch)
tree41a5c6ec1f9a9981fcf970b7b48095b54c142d64 /src/components/ble/DfuService.h
parent09db67e003ab593956b4d4474fd08e7548985030 (diff)
Format header files
In my PR updating clang-format, I forgot to also format the headers.
Diffstat (limited to 'src/components/ble/DfuService.h')
-rw-r--r--src/components/ble/DfuService.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/ble/DfuService.h b/src/components/ble/DfuService.h
index 4708a4a6..b56911b9 100644
--- a/src/components/ble/DfuService.h
+++ b/src/components/ble/DfuService.h
@@ -13,9 +13,11 @@ namespace Pinetime {
namespace System {
class SystemTask;
}
+
namespace Drivers {
class SpiNorFlash;
}
+
namespace Controllers {
class Ble;
@@ -46,10 +48,12 @@ namespace Pinetime {
void OnNotificationTimer();
void Reset();
};
+
class DfuImage {
public:
DfuImage(Pinetime::Drivers::SpiNorFlash& spiNorFlash) : spiNorFlash {spiNorFlash} {
}
+
void Init(size_t chunkSize, size_t totalSize, uint16_t expectedCrc);
void Erase();
void Append(uint8_t* data, size_t size);