ref: fc5424cb72e477c5f1bbfaeddb5c50b851a965ae
src/components/ble/BleController.cpp
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
#include "components/ble/BleController.h" using namespace Pinetime::Controllers; bool Ble::IsConnected() const { return isConnected; } void Ble::Connect() { isConnected = true; } void Ble::Disconnect() { isConnected = false; } bool Ble::IsRadioEnabled() const { return isRadioEnabled; } void Ble::EnableRadio() { isRadioEnabled = true; } void Ble::DisableRadio() { isRadioEnabled = 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; } |