Renamed SystemTask/ to systemtask/
This commit is contained in:
parent
40a643d203
commit
e25c4edbcf
4 changed files with 8 additions and 8 deletions
|
@ -374,7 +374,7 @@ list(APPEND SOURCE_FILES
|
||||||
DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c
|
DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c
|
||||||
DisplayApp/Fonts/jetbrains_mono_bold_20.c
|
DisplayApp/Fonts/jetbrains_mono_bold_20.c
|
||||||
|
|
||||||
SystemTask/SystemTask.cpp
|
systemtask/SystemTask.cpp
|
||||||
drivers/TwiMaster.cpp
|
drivers/TwiMaster.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -451,8 +451,8 @@ set(INCLUDE_FILES
|
||||||
libs/date/includes/date/ptz.h
|
libs/date/includes/date/ptz.h
|
||||||
libs/date/includes/date/tz_private.h
|
libs/date/includes/date/tz_private.h
|
||||||
DisplayApp/LittleVgl.h
|
DisplayApp/LittleVgl.h
|
||||||
SystemTask/SystemTask.h
|
systemtask/SystemTask.h
|
||||||
SystemTask/SystemMonitor.h
|
systemtask/SystemMonitor.h
|
||||||
DisplayApp/Screens/Symbols.h
|
DisplayApp/Screens/Symbols.h
|
||||||
drivers/TwiMaster.h
|
drivers/TwiMaster.h
|
||||||
)
|
)
|
||||||
|
|
|
@ -46,7 +46,7 @@ void SystemTask::Start() {
|
||||||
|
|
||||||
void SystemTask::Process(void *instance) {
|
void SystemTask::Process(void *instance) {
|
||||||
auto *app = static_cast<SystemTask *>(instance);
|
auto *app = static_cast<SystemTask *>(instance);
|
||||||
NRF_LOG_INFO("SystemTask task started!");
|
NRF_LOG_INFO("systemtask task started!");
|
||||||
app->Work();
|
app->Work();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ void SystemTask::Work() {
|
||||||
break;
|
break;
|
||||||
case Messages::GoToSleep:
|
case Messages::GoToSleep:
|
||||||
isGoingToSleep = true;
|
isGoingToSleep = true;
|
||||||
NRF_LOG_INFO("[SystemTask] Going to sleep");
|
NRF_LOG_INFO("[systemtask] Going to sleep");
|
||||||
xTimerStop(idleTimer, 0);
|
xTimerStop(idleTimer, 0);
|
||||||
displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::GoToSleep);
|
displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::GoToSleep);
|
||||||
break;
|
break;
|
||||||
|
@ -196,13 +196,13 @@ void SystemTask::Work() {
|
||||||
void SystemTask::OnButtonPushed() {
|
void SystemTask::OnButtonPushed() {
|
||||||
if(isGoingToSleep) return;
|
if(isGoingToSleep) return;
|
||||||
if(!isSleeping) {
|
if(!isSleeping) {
|
||||||
NRF_LOG_INFO("[SystemTask] Button pushed");
|
NRF_LOG_INFO("[systemtask] Button pushed");
|
||||||
PushMessage(Messages::OnButtonEvent);
|
PushMessage(Messages::OnButtonEvent);
|
||||||
displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::ButtonPushed);
|
displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::ButtonPushed);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(!isWakingUp) {
|
if(!isWakingUp) {
|
||||||
NRF_LOG_INFO("[SystemTask] Button pushed, waking up");
|
NRF_LOG_INFO("[systemtask] Button pushed, waking up");
|
||||||
GoToRunning();
|
GoToRunning();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,7 @@ void SystemTask::GoToRunning() {
|
||||||
|
|
||||||
void SystemTask::OnTouchEvent() {
|
void SystemTask::OnTouchEvent() {
|
||||||
if(isGoingToSleep) return ;
|
if(isGoingToSleep) return ;
|
||||||
NRF_LOG_INFO("[SystemTask] Touch event");
|
NRF_LOG_INFO("[systemtask] Touch event");
|
||||||
if(!isSleeping) {
|
if(!isSleeping) {
|
||||||
PushMessage(Messages::OnTouchEvent);
|
PushMessage(Messages::OnTouchEvent);
|
||||||
displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::TouchEvent);
|
displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::TouchEvent);
|
Loading…
Reference in a new issue