ef44b763d9
Apply a few changes that were requested in the PR during the review. # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/Messages.h # src/displayapp/screens/settings/Settings.cpp
44 lines
754 B
C++
44 lines
754 B
C++
#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;
|
|
}
|