summaryrefslogtreecommitdiff
path: root/src/components/ble/BleController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ble/BleController.cpp')
-rw-r--r--src/components/ble/BleController.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/components/ble/BleController.cpp b/src/components/ble/BleController.cpp
new file mode 100644
index 00000000..2b396e12
--- /dev/null
+++ b/src/components/ble/BleController.cpp
@@ -0,0 +1,31 @@
+#include <cstring>
+#include <cstdlib>
+#include "BleController.h"
+
+using namespace Pinetime::Controllers;
+
+void Ble::Connect() {
+ isConnected = true;
+}
+
+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;
+}
+
+