diff options
author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2023-01-07 21:23:15 +0100 |
---|---|---|
committer | JF <JF002@users.noreply.github.com> | 2023-01-09 21:41:21 +0100 |
commit | 96165a8541b33baace920e26f062b2e282d644c6 (patch) | |
tree | 41a5c6ec1f9a9981fcf970b7b48095b54c142d64 /src/components/ble/BleController.h | |
parent | 09db67e003ab593956b4d4474fd08e7548985030 (diff) |
Format header files
In my PR updating clang-format, I forgot to also format the headers.
Diffstat (limited to 'src/components/ble/BleController.h')
-rw-r--r-- | src/components/ble/BleController.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/ble/BleController.h b/src/components/ble/BleController.h index 675ede2d..de0a1bc2 100644 --- a/src/components/ble/BleController.h +++ b/src/components/ble/BleController.h @@ -24,6 +24,7 @@ namespace Pinetime { void StopFirmwareUpdate(); void FirmwareUpdateTotalBytes(uint32_t totalBytes); void FirmwareUpdateCurrentBytes(uint32_t currentBytes); + void State(FirmwareUpdateStates state) { firmwareUpdateState = state; } @@ -31,12 +32,15 @@ namespace Pinetime { bool IsFirmwareUpdating() const { return isFirmwareUpdating; } + uint32_t FirmwareUpdateTotalBytes() const { return firmwareUpdateTotalBytes; } + uint32_t FirmwareUpdateCurrentBytes() const { return firmwareUpdateCurrentBytes; } + FirmwareUpdateStates State() const { return firmwareUpdateState; } @@ -44,15 +48,19 @@ namespace Pinetime { void Address(BleAddress&& addr) { address = addr; } + const BleAddress& Address() const { return address; } + void AddressType(AddressTypes t) { addressType = t; } + void SetPairingKey(uint32_t k) { pairingKey = k; } + uint32_t GetPairingKey() const { return pairingKey; } |