diff --git a/src/ETHTransport.c b/src/ETHTransport.c index f308f48..cce7d76 100644 --- a/src/ETHTransport.c +++ b/src/ETHTransport.c @@ -115,9 +115,11 @@ static void got_ip_event_handler(void *arg, esp_event_base_t event_base, { ip_event_got_ip_t *event = (ip_event_got_ip_t*) event_data; const esp_netif_ip_info_t *ip_info = &event->ip_info; +#if CONFIG_WEBGUIAPP_ETHERNET_ENABLE memcpy(&GetSysConf()->ethSettings.IPAddr, &event->ip_info.ip, sizeof(event->ip_info.ip)); memcpy(&GetSysConf()->ethSettings.Mask, &event->ip_info.netmask, sizeof(event->ip_info.netmask)); memcpy(&GetSysConf()->ethSettings.Gateway, &event->ip_info.gw, sizeof(event->ip_info.gw)); +#endif ESP_LOGI(TAG, "Ethernet Got IP Address"); ESP_LOGI(TAG, "~~~~~~~~~~~"); ESP_LOGI(TAG, "ETHIP:" IPSTR, IP2STR(&ip_info->ip)); diff --git a/src/Helpers.c b/src/Helpers.c index 82e69f1..e2ccaa4 100644 --- a/src/Helpers.c +++ b/src/Helpers.c @@ -234,7 +234,7 @@ unsigned long ulTotalRunTime, ulStatsAsPercentage; if( ulStatsAsPercentage > 0UL ) { - sprintf( pcWriteBuffer, "%s----%llu----%lu%%----%d\r\n", + sprintf( pcWriteBuffer, "%-32s %-10llu %-10lu%% %d\r\n", pxTaskStatusArray[ x ].pcTaskName, (uint64_t)pxTaskStatusArray[ x ].ulRunTimeCounter, ulStatsAsPercentage, @@ -244,7 +244,7 @@ unsigned long ulTotalRunTime, ulStatsAsPercentage; { /* If the percentage is zero here then the task has consumed less than 1% of the total run time. */ - sprintf( pcWriteBuffer, "%s----%llu----<1%%----%d\r\n", + sprintf( pcWriteBuffer, "%-32s %-10llu <1%% %d\r\n", pxTaskStatusArray[ x ].pcTaskName, (uint64_t)pxTaskStatusArray[ x ].ulRunTimeCounter, (int)pxTaskStatusArray[ x ].usStackHighWaterMark);