testing code

This commit is contained in:
sharandac
2020-08-10 13:11:34 +02:00
parent 400fcbd622
commit cb3478f0d5
5 changed files with 30 additions and 0 deletions

View File

@@ -33,6 +33,8 @@
#include "gui/statusbar.h"
#include "gui/keyboard.h"
#include "hardware/powermgm.h"
EventGroupHandle_t weather_forecast_event_handle = NULL;
TaskHandle_t _weather_forecast_sync_Task;
void weather_forecast_sync_Task( void * pvParameters );
@@ -182,6 +184,11 @@ void weather_forecast_sync_Task( void * pvParameters ) {
weather_config_t *weather_config = weather_get_config();
int32_t retval = -1;
if ( powermgm_get_event( POWERMGM_STANDBY | POWERMGM_STANDBY_REQUEST ) ) {
log_i("block weather forecast task");
xEventGroupClearBits( weather_forecast_event_handle, WEATHER_FORECAST_SYNC_REQUEST );
vTaskDelete( NULL );
}
log_i("start weather forecast task");
vTaskDelay( 250 );