Merge branch 'airplane-mode' of https://github.com/evergreen22/InfiniTime into evergreen22-airplane-mode
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
This commit is contained in:
@@ -2,12 +2,28 @@
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
void Ble::SetConnectState(Ble::ConnectStates newState) {
|
||||
connectionState = newState;
|
||||
bool Ble::IsConnected() const {
|
||||
return isConnected;
|
||||
}
|
||||
|
||||
Ble::ConnectStates Ble::GetConnectState() const {
|
||||
return connectionState;
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user