Skip to content

Commit

Permalink
EXT sensor status modified
Browse files Browse the repository at this point in the history
  • Loading branch information
luk6xff committed Jul 16, 2021
1 parent fcef438 commit ef09b60
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 0 additions & 3 deletions esp32-app/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# esp32-app
Main led-clock application based on esp32 wroom device.

## Details
TODO

## Instalation
* Install `vscode` with `platformio` plugin (Versions: vscode[1.49.2], platformio[Core:5.0.1, Home:3.3.0])
* (Platform Espressif32 version 2.0.0)[https://github.com/platformio/platform-espressif32/releases/tag/v2.0.0]
Expand Down
2 changes: 1 addition & 1 deletion esp32-app/lib/MD_Parola/src/MD_Parola_HScroll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void MD_PZone::effectHScroll(bool bLeft, bool bIn)

// check if enough scrolled off to say that new message should start
// how we count depends on the direction for scrolling
#if 0 // LU_FIX Stop filling empty bar while moving back
#if 1 // LU_FIX Stop filling empty bar while moving back
{
uint16_t spaceCount = 0;
uint16_t maxCount = (_zoneEnd - _zoneStart + 1) * COL_SIZE;
Expand Down
10 changes: 7 additions & 3 deletions esp32-app/src/App/app_status_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const AppStateActionsMap AppStatusTask::k_stateActions =
RADIO_ERROR, []()
{
const String msg(tr(M_ERROR) + col + spc + tr(M_RADIO_ERROR));
AppCtx.clearDisplayMsgQueue();
AppCtx.putDisplayMsg(msg.c_str(), msg.length(), 0);
utils::err("APP_STATUS: RADIO_ERROR-%s",tr(M_RADIO_ERROR));
}
Expand All @@ -51,7 +50,12 @@ const AppStateActionsMap AppStatusTask::k_stateActions =
EXT_DATA_SENSOR_ERROR, []()
{
const String msg(tr(M_ERROR) + col + spc + tr(M_EXT_DATA_SENSOR_ERROR));
AppCtx.putDisplayMsg(msg.c_str(), msg.length(), 0);
static int error_cnt = 0;
// Print msg every 10 min
if ((error_cnt++ % 600) == 0)
{
AppCtx.putDisplayMsg(msg.c_str(), msg.length(), 0);
}
utils::err("APP_STATUS: EXT_DATA_SENSOR_ERROR-%s",tr(M_EXT_DATA_SENSOR_ERROR));
}
},
Expand Down Expand Up @@ -85,7 +89,7 @@ AppStatusTask::AppStatusTask()
//------------------------------------------------------------------------------
void AppStatusTask::run()
{
TickType_t sleepTime = (1000 / portTICK_PERIOD_MS);
const TickType_t sleepTime = (1000 / portTICK_PERIOD_MS);
AppStatusValue lastAppStatus = AppCtx.appStatus();

for(;;)
Expand Down
2 changes: 1 addition & 1 deletion esp32-app/src/App/app_vars.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
// Define the app version number
#define APP_VERSION "0.1.0"

#define APP_DATE_LAST_MODIFIED "Fri, 16 Jul 2021 18:27:34 GMT"
#define APP_DATE_LAST_MODIFIED "Fri, 16 Jul 2021 20:47:01 GMT"

0 comments on commit ef09b60

Please sign in to comment.