summaryrefslogtreecommitdiff
path: root/src/Components/Ble/BleController.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-05-02 12:16:57 (GMT)
committerJF <jf@codingfield.com>2020-05-02 12:16:57 (GMT)
commite20fdfa494ed8b1b6a62b71ca605a6a801e54e4e (patch)
treec1d0eef1ae68f37b0e2338198b4304ac74eea25f /src/Components/Ble/BleController.cpp
parent87c6556ad049077ab14398637031ea029b321baf (diff)
Add new screen that is displayed during the OTA transfert.
Diffstat (limited to 'src/Components/Ble/BleController.cpp')
-rw-r--r--src/Components/Ble/BleController.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Components/Ble/BleController.cpp b/src/Components/Ble/BleController.cpp
index 5fa5168..2b396e1 100644
--- a/src/Components/Ble/BleController.cpp
+++ b/src/Components/Ble/BleController.cpp
@@ -12,4 +12,20 @@ void Ble::Disconnect() {
isConnected = false;
}
+void Ble::StartFirmwareUpdate() {
+ isFirmwareUpdating = true;
+}
+
+void Ble::StopFirmwareUpdate() {
+ isFirmwareUpdating = false;
+}
+
+void Ble::FirmwareUpdateTotalBytes(uint32_t totalBytes) {
+ firmwareUpdateTotalBytes = totalBytes;
+}
+
+void Ble::FirmwareUpdateCurrentBytes(uint32_t currentBytes) {
+ firmwareUpdateCurrentBytes = currentBytes;
+}
+