network changes
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
#include "soc/gpio_num.h"
|
||||
|
||||
// Project headers
|
||||
#include "types.hpp"
|
||||
#include "network.hpp"
|
||||
#include "led.hpp"
|
||||
#include "network.hpp"
|
||||
#include "types.hpp"
|
||||
|
||||
// Project cpp (Unity Build entry)
|
||||
// clang-format off
|
||||
@@ -186,6 +186,8 @@ extern "C" void app_main()
|
||||
|
||||
setup_led();
|
||||
|
||||
initialize_network();
|
||||
|
||||
set_led_status(led_status::ConnectingEthernet);
|
||||
g_Ethernet_Initialized = true;
|
||||
esp_err_t result = connect_ethernet(kBlockUntilEthernetEstablished);
|
||||
@@ -346,9 +348,10 @@ extern "C" void app_main()
|
||||
{
|
||||
char *saveptr;
|
||||
char *line = strtok_r(ptr, "\n", &saveptr);
|
||||
while (line != nullptr) {
|
||||
ESP_LOGI(kTagMain, "%s", line);
|
||||
line = strtok_r(nullptr, "\n", &saveptr);
|
||||
while (line != nullptr)
|
||||
{
|
||||
ESP_LOGI(kTagMain, "%s", line);
|
||||
line = strtok_r(nullptr, "\n", &saveptr);
|
||||
}
|
||||
free(ptr);
|
||||
}
|
||||
@@ -382,4 +385,5 @@ shutdown:
|
||||
|
||||
ESP_ERROR_CHECK(esp_event_loop_delete_default());
|
||||
ESP_ERROR_CHECK(nvs_flash_deinit());
|
||||
shutdown_network();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user