summaryrefslogtreecommitdiff
path: root/src/components/ble/BleController.cpp
blob: 0e1c5d7e5e42d4043ab7e61d0bf9c3fdbad8d63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "components/ble/BleController.h"

using namespace Pinetime::Controllers;

void Ble::SetConnectState(Ble::ConnectStates newState) {
  connectionState = newState;
}

Ble::ConnectStates Ble::GetConnectState() const {
  return connectionState;
}

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;
}