some testing code

This commit is contained in:
sharandac
2020-08-10 13:36:48 +02:00
parent cb3478f0d5
commit 28d83036d6
7 changed files with 1 additions and 25 deletions

View File

@@ -19,8 +19,6 @@ monitor_filters =
esp32_exception_decoder
build_flags =
-DCORE_DEBUG_LEVEL=3
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
src_filter =
+<*>
lib_deps =

View File

@@ -170,11 +170,6 @@ weather_config_t *weather_get_config( void ) {
}
void weather_widget_sync_Task( void * pvParameters ) {
if ( powermgm_get_event( POWERMGM_STANDBY | POWERMGM_STANDBY_REQUEST ) ) {
log_i("block weather widget task");
xEventGroupClearBits( weather_widget_event_handle, WEATHER_WIDGET_SYNC_REQUEST );
vTaskDelete( NULL );
}
log_i("start weather widget task");
vTaskDelay( 250 );

View File

@@ -184,11 +184,6 @@ 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 );

View File

@@ -198,11 +198,6 @@ void update_check_version( void ) {
}
void update_Task( void * pvParameters ) {
if ( powermgm_get_event( POWERMGM_STANDBY | POWERMGM_STANDBY_REQUEST ) ) {
log_i("block update task");
xEventGroupClearBits( update_event_handle, UPDATE_REQUEST | UPDATE_GET_VERSION_REQUEST );
vTaskDelete( NULL );
}
log_i("start update task");
if ( xEventGroupGetBits( update_event_handle) & UPDATE_GET_VERSION_REQUEST ) {

View File

@@ -124,11 +124,6 @@ void timesyncToRTC( void ) {
}
void timesync_Task( void * pvParameters ) {
if ( powermgm_get_event( POWERMGM_STANDBY | POWERMGM_STANDBY_REQUEST ) ) {
log_i("block time sync task");
xEventGroupClearBits( time_event_handle, TIME_SYNC_REQUEST );
vTaskDelete( NULL );
}
log_i("start time sync task");
if ( xEventGroupGetBits( time_event_handle ) & TIME_SYNC_REQUEST ) {

View File

@@ -427,8 +427,8 @@ void wifictl_Task( void * pvParameters ) {
if ( powermgm_get_event( POWERMGM_WIFI_ON_REQUEST ) ) {
statusbar_wifi_set_state( true, "activate" );
lv_obj_invalidate( lv_scr_act() );
powermgm_clear_event( POWERMGM_WIFI_OFF_REQUEST | POWERMGM_WIFI_ACTIVE | POWERMGM_WIFI_CONNECTED | POWERMGM_WIFI_SCAN | POWERMGM_WIFI_ON_REQUEST );
WiFi.mode( WIFI_STA );
powermgm_clear_event( POWERMGM_WIFI_OFF_REQUEST | POWERMGM_WIFI_ACTIVE | POWERMGM_WIFI_CONNECTED | POWERMGM_WIFI_SCAN | POWERMGM_WIFI_ON_REQUEST );
log_i("request wifictl on done");
}
else if ( powermgm_get_event( POWERMGM_WIFI_OFF_REQUEST ) ) {

View File

@@ -40,8 +40,6 @@ TTGOClass *ttgo = TTGOClass::getWatch();
void setup()
{
// heap_caps_malloc_extmem_enable( 512 );
motor_setup();
Serial.begin(115200);
Serial.printf("starting t-watch V1, version: " __FIRMWARE__ "\r\n");