Normalize spacing in ESP32 firmware

This commit is contained in:
2025-12-09 10:04:06 +01:00
parent 4e78a5f2ed
commit eaad4469bc
3 changed files with 12 additions and 14 deletions
-2
View File
@@ -97,13 +97,11 @@ void mqttTask(void *pvParameters) {
EventBits_t bits = xEventGroupGetBits(connectivity_event_group); EventBits_t bits = xEventGroupGetBits(connectivity_event_group);
if((bits &(WIFI_CONNECTED_BIT | MQTT_CONNECTED_BIT)) ==(WIFI_CONNECTED_BIT | MQTT_CONNECTED_BIT)) { if((bits &(WIFI_CONNECTED_BIT | MQTT_CONNECTED_BIT)) ==(WIFI_CONNECTED_BIT | MQTT_CONNECTED_BIT)) {
ESP_LOGV(TAG, "Connection established"); ESP_LOGV(TAG, "Connection established");
uint32_t task_notification = ulTaskNotifyTake(pdTRUE, pdMS_TO_TICKS(MQTT_TASK_TIMEOUT_MS)); uint32_t task_notification = ulTaskNotifyTake(pdTRUE, pdMS_TO_TICKS(MQTT_TASK_TIMEOUT_MS));
if(task_notification) {} //{twi_do(global_rx_buffer)} if(task_notification) {} //{twi_do(global_rx_buffer)}
} else { } else {
ESP_LOGW(TAG, "Waiting for connection..."); ESP_LOGW(TAG, "Waiting for connection...");
vTaskDelay(pdMS_TO_TICKS(MQTT_TASK_TIMEOUT_MS/2)); vTaskDelay(pdMS_TO_TICKS(MQTT_TASK_TIMEOUT_MS/2));