2021-10-13 22:08:35 +02:00
|
|
|
#include "components/ble/BleController.h"
|
2019-12-27 17:05:49 +01:00
|
|
|
|
|
|
|
using namespace Pinetime::Controllers;
|
|
|
|
|
|
|
|
void Ble::Connect() {
|
|
|
|
isConnected = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Ble::Disconnect() {
|
|
|
|
isConnected = false;
|
|
|
|
}
|
2020-03-25 21:23:40 +01:00
|
|
|
|
2020-05-02 14:16:57 +02:00
|
|
|
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;
|
|
|
|
}
|