mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
Compare commits
5 commits
0d78f548c8
...
64e2e1b308
Author | SHA1 | Date | |
---|---|---|---|
64e2e1b308 | |||
8598142c27 | |||
565ed00cee | |||
eeb0d23816 | |||
b2e2690adf |
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -4,9 +4,6 @@
|
||||||
[submodule "src/libs/littlefs"]
|
[submodule "src/libs/littlefs"]
|
||||||
path = src/libs/littlefs
|
path = src/libs/littlefs
|
||||||
url = https://github.com/littlefs-project/littlefs.git
|
url = https://github.com/littlefs-project/littlefs.git
|
||||||
[submodule "src/libs/QCBOR"]
|
|
||||||
path = src/libs/QCBOR
|
|
||||||
url = https://github.com/laurencelundblade/QCBOR.git
|
|
||||||
[submodule "src/libs/arduinoFFT"]
|
[submodule "src/libs/arduinoFFT"]
|
||||||
path = src/libs/arduinoFFT
|
path = src/libs/arduinoFFT
|
||||||
url = https://github.com/kosme/arduinoFFT.git
|
url = https://github.com/kosme/arduinoFFT.git
|
||||||
|
|
|
@ -418,6 +418,7 @@ list(APPEND SOURCE_FILES
|
||||||
displayapp/screens/settings/SettingChimes.cpp
|
displayapp/screens/settings/SettingChimes.cpp
|
||||||
displayapp/screens/settings/SettingShakeThreshold.cpp
|
displayapp/screens/settings/SettingShakeThreshold.cpp
|
||||||
displayapp/screens/settings/SettingBluetooth.cpp
|
displayapp/screens/settings/SettingBluetooth.cpp
|
||||||
|
displayapp/screens/settings/SettingOTA.cpp
|
||||||
|
|
||||||
## Watch faces
|
## Watch faces
|
||||||
displayapp/screens/WatchFaceAnalog.cpp
|
displayapp/screens/WatchFaceAnalog.cpp
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#include "components/ble/DfuService.h"
|
#include "components/ble/DfuService.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "components/ble/BleController.h"
|
#include "components/ble/BleController.h"
|
||||||
|
#include "components/ble/NotificationManager.h"
|
||||||
|
#include "components/settings/Settings.h"
|
||||||
#include "drivers/SpiNorFlash.h"
|
#include "drivers/SpiNorFlash.h"
|
||||||
#include "systemtask/SystemTask.h"
|
#include "systemtask/SystemTask.h"
|
||||||
#include <nrf_log.h>
|
#include <nrf_log.h>
|
||||||
|
@ -78,6 +80,18 @@ void DfuService::Init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int DfuService::OnServiceData(uint16_t connectionHandle, uint16_t attributeHandle, ble_gatt_access_ctxt* context) {
|
int DfuService::OnServiceData(uint16_t connectionHandle, uint16_t attributeHandle, ble_gatt_access_ctxt* context) {
|
||||||
|
#ifndef PINETIME_IS_RECOVERY
|
||||||
|
if (systemTask.GetSettings().GetDfuAndFsMode() == Pinetime::Controllers::Settings::DfuAndFsMode::Disabled) {
|
||||||
|
Pinetime::Controllers::NotificationManager::Notification notif;
|
||||||
|
memcpy(notif.message.data(), denyAlert, denyAlertLength);
|
||||||
|
notif.size = denyAlertLength;
|
||||||
|
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
|
||||||
|
systemTask.GetNotificationManager().Push(std::move(notif));
|
||||||
|
systemTask.PushMessage(Pinetime::System::Messages::OnNewNotification);
|
||||||
|
return BLE_ATT_ERR_INSUFFICIENT_AUTHOR;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (bleController.IsFirmwareUpdating()) {
|
if (bleController.IsFirmwareUpdating()) {
|
||||||
xTimerStart(timeoutTimer, 0);
|
xTimerStart(timeoutTimer, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,8 @@ namespace Pinetime {
|
||||||
|
|
||||||
namespace Controllers {
|
namespace Controllers {
|
||||||
class Ble;
|
class Ble;
|
||||||
|
class Settings;
|
||||||
|
class NotificationManager;
|
||||||
|
|
||||||
class DfuService {
|
class DfuService {
|
||||||
public:
|
public:
|
||||||
|
@ -87,6 +89,9 @@ namespace Pinetime {
|
||||||
DfuImage dfuImage;
|
DfuImage dfuImage;
|
||||||
NotificationManager notificationManager;
|
NotificationManager notificationManager;
|
||||||
|
|
||||||
|
static constexpr const char denyAlert[] = "InfiniTime\0Firmware update attempted, but disabled in settings.";
|
||||||
|
static constexpr const uint8_t denyAlertLength = sizeof(denyAlert); // for this to work denyAlert MUST be array
|
||||||
|
|
||||||
static constexpr uint16_t dfuServiceId {0x1530};
|
static constexpr uint16_t dfuServiceId {0x1530};
|
||||||
static constexpr uint16_t packetCharacteristicId {0x1532};
|
static constexpr uint16_t packetCharacteristicId {0x1532};
|
||||||
static constexpr uint16_t controlPointCharacteristicId {0x1531};
|
static constexpr uint16_t controlPointCharacteristicId {0x1531};
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#include <nrf_log.h>
|
#include <nrf_log.h>
|
||||||
#include "FSService.h"
|
#include "FSService.h"
|
||||||
#include "components/ble/BleController.h"
|
#include "components/ble/BleController.h"
|
||||||
|
#include "components/ble/NotificationManager.h"
|
||||||
|
#include "components/settings/Settings.h"
|
||||||
#include "systemtask/SystemTask.h"
|
#include "systemtask/SystemTask.h"
|
||||||
|
|
||||||
using namespace Pinetime::Controllers;
|
using namespace Pinetime::Controllers;
|
||||||
|
@ -49,6 +51,18 @@ void FSService::Init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int FSService::OnFSServiceRequested(uint16_t connectionHandle, uint16_t attributeHandle, ble_gatt_access_ctxt* context) {
|
int FSService::OnFSServiceRequested(uint16_t connectionHandle, uint16_t attributeHandle, ble_gatt_access_ctxt* context) {
|
||||||
|
#ifndef PINETIME_IS_RECOVERY
|
||||||
|
if (systemTask.GetSettings().GetDfuAndFsMode() == Pinetime::Controllers::Settings::DfuAndFsMode::Disabled) {
|
||||||
|
Pinetime::Controllers::NotificationManager::Notification notif;
|
||||||
|
memcpy(notif.message.data(), denyAlert, denyAlertLength);
|
||||||
|
notif.size = denyAlertLength;
|
||||||
|
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
|
||||||
|
systemTask.GetNotificationManager().Push(std::move(notif));
|
||||||
|
systemTask.PushMessage(Pinetime::System::Messages::OnNewNotification);
|
||||||
|
return BLE_ATT_ERR_INSUFFICIENT_AUTHOR;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (attributeHandle == versionCharacteristicHandle) {
|
if (attributeHandle == versionCharacteristicHandle) {
|
||||||
NRF_LOG_INFO("FS_S : handle = %d", versionCharacteristicHandle);
|
NRF_LOG_INFO("FS_S : handle = %d", versionCharacteristicHandle);
|
||||||
int res = os_mbuf_append(context->om, &fsVersion, sizeof(fsVersion));
|
int res = os_mbuf_append(context->om, &fsVersion, sizeof(fsVersion));
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace Pinetime {
|
||||||
|
|
||||||
namespace Controllers {
|
namespace Controllers {
|
||||||
class Ble;
|
class Ble;
|
||||||
|
class Settings;
|
||||||
|
class NotificationManager;
|
||||||
|
|
||||||
class FSService {
|
class FSService {
|
||||||
public:
|
public:
|
||||||
|
@ -26,6 +28,10 @@ namespace Pinetime {
|
||||||
private:
|
private:
|
||||||
Pinetime::System::SystemTask& systemTask;
|
Pinetime::System::SystemTask& systemTask;
|
||||||
Pinetime::Controllers::FS& fs;
|
Pinetime::Controllers::FS& fs;
|
||||||
|
|
||||||
|
static constexpr const char denyAlert[] = "InfiniTime\0File access attempted, but disabled in settings.";
|
||||||
|
static constexpr const uint8_t denyAlertLength = sizeof(denyAlert); // for this to work denyAlert MUST be array
|
||||||
|
|
||||||
static constexpr uint16_t FSServiceId {0xFEBB};
|
static constexpr uint16_t FSServiceId {0xFEBB};
|
||||||
static constexpr uint16_t fsVersionId {0x0100};
|
static constexpr uint16_t fsVersionId {0x0100};
|
||||||
static constexpr uint16_t fsTransferId {0x0200};
|
static constexpr uint16_t fsTransferId {0x0200};
|
||||||
|
|
|
@ -63,7 +63,8 @@ int ImmediateAlertService::OnAlertLevelChanged(uint16_t attributeHandle, ble_gat
|
||||||
auto* alertString = ToString(alertLevel);
|
auto* alertString = ToString(alertLevel);
|
||||||
|
|
||||||
NotificationManager::Notification notif;
|
NotificationManager::Notification notif;
|
||||||
std::memcpy(notif.message.data(), alertString, strlen(alertString));
|
std::memcpy(notif.message.data(), alertString, strlen(alertString) + 1);
|
||||||
|
notif.size = strlen(alertString) + 1;
|
||||||
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
|
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
|
||||||
notificationManager.Push(std::move(notif));
|
notificationManager.Push(std::move(notif));
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,9 @@ void Settings::LoadSettingsFromFile() {
|
||||||
if (bufferSettings.version == settingsVersion) {
|
if (bufferSettings.version == settingsVersion) {
|
||||||
settings = bufferSettings;
|
settings = bufferSettings;
|
||||||
}
|
}
|
||||||
|
if (settings.dfuAndFsMode == DfuAndFsMode::EnabledTillReboot) {
|
||||||
|
settings.dfuAndFsMode = DfuAndFsMode::Disabled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Settings::SaveSettingsToFile() {
|
void Settings::SaveSettingsToFile() {
|
||||||
|
|
|
@ -36,6 +36,7 @@ namespace Pinetime {
|
||||||
};
|
};
|
||||||
enum class PTSGaugeStyle : uint8_t { Full, Half, Numeric };
|
enum class PTSGaugeStyle : uint8_t { Full, Half, Numeric };
|
||||||
enum class PTSWeather : uint8_t { On, Off };
|
enum class PTSWeather : uint8_t { On, Off };
|
||||||
|
enum class DfuAndFsMode : uint8_t { Disabled, Enabled, EnabledTillReboot };
|
||||||
|
|
||||||
struct PineTimeStyle {
|
struct PineTimeStyle {
|
||||||
Colors ColorTime = Colors::Teal;
|
Colors ColorTime = Colors::Teal;
|
||||||
|
@ -298,6 +299,17 @@ namespace Pinetime {
|
||||||
return bleRadioEnabled;
|
return bleRadioEnabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void SetDfuAndFsMode(DfuAndFsMode mode) {
|
||||||
|
if (mode != settings.dfuAndFsMode) {
|
||||||
|
settingsChanged = true;
|
||||||
|
}
|
||||||
|
settings.dfuAndFsMode = mode;
|
||||||
|
};
|
||||||
|
|
||||||
|
DfuAndFsMode GetDfuAndFsMode() const {
|
||||||
|
return settings.dfuAndFsMode;
|
||||||
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Pinetime::Controllers::FS& fs;
|
Pinetime::Controllers::FS& fs;
|
||||||
|
|
||||||
|
@ -325,6 +337,8 @@ namespace Pinetime {
|
||||||
uint16_t shakeWakeThreshold = 150;
|
uint16_t shakeWakeThreshold = 150;
|
||||||
|
|
||||||
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
|
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
|
||||||
|
|
||||||
|
DfuAndFsMode dfuAndFsMode = DfuAndFsMode::Disabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
SettingsData settings;
|
SettingsData settings;
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
#include "displayapp/screens/settings/SettingChimes.h"
|
#include "displayapp/screens/settings/SettingChimes.h"
|
||||||
#include "displayapp/screens/settings/SettingShakeThreshold.h"
|
#include "displayapp/screens/settings/SettingShakeThreshold.h"
|
||||||
#include "displayapp/screens/settings/SettingBluetooth.h"
|
#include "displayapp/screens/settings/SettingBluetooth.h"
|
||||||
|
#include "displayapp/screens/settings/SettingOTA.h"
|
||||||
|
|
||||||
#include "libs/lv_conf.h"
|
#include "libs/lv_conf.h"
|
||||||
#include "UserApps.h"
|
#include "UserApps.h"
|
||||||
|
@ -599,6 +600,9 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
|
||||||
case Apps::SettingBluetooth:
|
case Apps::SettingBluetooth:
|
||||||
currentScreen = std::make_unique<Screens::SettingBluetooth>(this, settingsController);
|
currentScreen = std::make_unique<Screens::SettingBluetooth>(this, settingsController);
|
||||||
break;
|
break;
|
||||||
|
case Apps::SettingOTA:
|
||||||
|
currentScreen = std::make_unique<Screens::SettingOTA>(this, settingsController);
|
||||||
|
break;
|
||||||
case Apps::BatteryInfo:
|
case Apps::BatteryInfo:
|
||||||
currentScreen = std::make_unique<Screens::BatteryInfo>(batteryController);
|
currentScreen = std::make_unique<Screens::BatteryInfo>(batteryController);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -42,6 +42,7 @@ namespace Pinetime {
|
||||||
SettingChimes,
|
SettingChimes,
|
||||||
SettingShakeThreshold,
|
SettingShakeThreshold,
|
||||||
SettingBluetooth,
|
SettingBluetooth,
|
||||||
|
SettingOTA,
|
||||||
Error
|
Error
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"file": "FontAwesome5-Solid+Brands+Regular.woff",
|
"file": "FontAwesome5-Solid+Brands+Regular.woff",
|
||||||
"range": "0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf06e, 0xf015, 0xf00c, 0xf0f3, 0xf522, 0xf743"
|
"range": "0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf06e, 0xf015, 0xf00c, 0xf0f3, 0xf522, 0xf743, 0xf3ed"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bpp": 1,
|
"bpp": 1,
|
||||||
|
|
|
@ -8,6 +8,7 @@ namespace Pinetime {
|
||||||
static constexpr const char* batteryHalf = "\xEF\x89\x82";
|
static constexpr const char* batteryHalf = "\xEF\x89\x82";
|
||||||
static constexpr const char* heartBeat = "\xEF\x88\x9E";
|
static constexpr const char* heartBeat = "\xEF\x88\x9E";
|
||||||
static constexpr const char* bluetooth = "\xEF\x8A\x94";
|
static constexpr const char* bluetooth = "\xEF\x8A\x94";
|
||||||
|
static constexpr const char* shieldAlt = "\xEF\x8F\xAD";
|
||||||
static constexpr const char* plug = "\xEF\x87\xA6";
|
static constexpr const char* plug = "\xEF\x87\xA6";
|
||||||
static constexpr const char* shoe = "\xEF\x95\x8B";
|
static constexpr const char* shoe = "\xEF\x95\x8B";
|
||||||
static constexpr const char* clock = "\xEF\x80\x97";
|
static constexpr const char* clock = "\xEF\x80\x97";
|
||||||
|
|
58
src/displayapp/screens/settings/SettingOTA.cpp
Normal file
58
src/displayapp/screens/settings/SettingOTA.cpp
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
#include "displayapp/screens/settings/SettingOTA.h"
|
||||||
|
#include <lvgl/lvgl.h>
|
||||||
|
#include "displayapp/DisplayApp.h"
|
||||||
|
#include "displayapp/Messages.h"
|
||||||
|
#include "displayapp/screens/Styles.h"
|
||||||
|
#include "displayapp/screens/Screen.h"
|
||||||
|
#include "displayapp/screens/Symbols.h"
|
||||||
|
|
||||||
|
using namespace Pinetime::Applications::Screens;
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
struct Option {
|
||||||
|
const char* name;
|
||||||
|
Pinetime::Controllers::Settings::DfuAndFsMode mode;
|
||||||
|
};
|
||||||
|
|
||||||
|
constexpr std::array<Option, 3> options = {{
|
||||||
|
{"Enabled", Pinetime::Controllers::Settings::DfuAndFsMode::Enabled},
|
||||||
|
{"Disabled", Pinetime::Controllers::Settings::DfuAndFsMode::Disabled},
|
||||||
|
{"Till reboot", Pinetime::Controllers::Settings::DfuAndFsMode::EnabledTillReboot},
|
||||||
|
}};
|
||||||
|
|
||||||
|
std::array<CheckboxList::Item, CheckboxList::MaxItems> CreateOptionArray() {
|
||||||
|
std::array<Pinetime::Applications::Screens::CheckboxList::Item, CheckboxList::MaxItems> optionArray;
|
||||||
|
for (size_t i = 0; i < CheckboxList::MaxItems; i++) {
|
||||||
|
if (i >= options.size()) {
|
||||||
|
optionArray[i].name = "";
|
||||||
|
optionArray[i].enabled = false;
|
||||||
|
} else {
|
||||||
|
optionArray[i].name = options[i].name;
|
||||||
|
optionArray[i].enabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return optionArray;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
SettingOTA::SettingOTA(Pinetime::Applications::DisplayApp* app, Pinetime::Controllers::Settings& settingsController)
|
||||||
|
: app {app},
|
||||||
|
settingsController {settingsController},
|
||||||
|
checkboxList(
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
"Firmware & files",
|
||||||
|
Symbols::shieldAlt,
|
||||||
|
settingsController.GetDfuAndFsMode() == Pinetime::Controllers::Settings::DfuAndFsMode::Enabled ? 0
|
||||||
|
: settingsController.GetDfuAndFsMode() == Pinetime::Controllers::Settings::DfuAndFsMode::EnabledTillReboot ? 2
|
||||||
|
: 1,
|
||||||
|
[&settings = settingsController](uint32_t index) {
|
||||||
|
settings.SetDfuAndFsMode(options[index].mode);
|
||||||
|
},
|
||||||
|
CreateOptionArray()) {
|
||||||
|
}
|
||||||
|
|
||||||
|
SettingOTA::~SettingOTA() {
|
||||||
|
lv_obj_clean(lv_scr_act());
|
||||||
|
settingsController.SaveSettings();
|
||||||
|
}
|
28
src/displayapp/screens/settings/SettingOTA.h
Normal file
28
src/displayapp/screens/settings/SettingOTA.h
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <lvgl/lvgl.h>
|
||||||
|
|
||||||
|
#include "components/settings/Settings.h"
|
||||||
|
#include "displayapp/screens/Screen.h"
|
||||||
|
#include "displayapp/screens/CheckboxList.h"
|
||||||
|
|
||||||
|
namespace Pinetime {
|
||||||
|
|
||||||
|
namespace Applications {
|
||||||
|
namespace Screens {
|
||||||
|
|
||||||
|
class SettingOTA : public Screen {
|
||||||
|
public:
|
||||||
|
SettingOTA(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
|
||||||
|
~SettingOTA() override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DisplayApp* app;
|
||||||
|
Pinetime::Controllers::Settings& settingsController;
|
||||||
|
CheckboxList checkboxList;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -45,8 +45,9 @@ namespace Pinetime {
|
||||||
{Symbols::clock, "Chimes", Apps::SettingChimes},
|
{Symbols::clock, "Chimes", Apps::SettingChimes},
|
||||||
{Symbols::tachometer, "Shake Calib.", Apps::SettingShakeThreshold},
|
{Symbols::tachometer, "Shake Calib.", Apps::SettingShakeThreshold},
|
||||||
{Symbols::check, "Firmware", Apps::FirmwareValidation},
|
{Symbols::check, "Firmware", Apps::FirmwareValidation},
|
||||||
{Symbols::bluetooth, "Bluetooth", Apps::SettingBluetooth},
|
{Symbols::shieldAlt, "Over-the-air", Apps::SettingOTA},
|
||||||
|
|
||||||
|
{Symbols::bluetooth, "Bluetooth", Apps::SettingBluetooth},
|
||||||
{Symbols::list, "About", Apps::SysInfo},
|
{Symbols::list, "About", Apps::SysInfo},
|
||||||
|
|
||||||
// {Symbols::none, "None", Apps::None},
|
// {Symbols::none, "None", Apps::None},
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 56b17bf9f74096774944bcac0829adcd887d391e
|
|
|
@ -87,6 +87,14 @@ namespace Pinetime {
|
||||||
return nimbleController;
|
return nimbleController;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Pinetime::Controllers::NotificationManager& GetNotificationManager() {
|
||||||
|
return notificationManager;
|
||||||
|
};
|
||||||
|
|
||||||
|
Pinetime::Controllers::Settings& GetSettings() {
|
||||||
|
return settingsController;
|
||||||
|
};
|
||||||
|
|
||||||
bool IsSleeping() const {
|
bool IsSleeping() const {
|
||||||
return state != SystemTaskState::Running;
|
return state != SystemTaskState::Running;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue