Normalize spacing in ESP32 firmware
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user