ecad2248d9
- Fixed crash when returning to Setup app (from any of the steps) - Fixed crash when returning to TimeDateSettings app (after locale selection) - Fixed GuiService inconsistent behaviour: now always perform operations async (e.g. to show/hide apps). This fixes crashes in some onHide() calls where onHide() might be called before onShow() was called. - Fix for incorrect WebServService path - Remove CYD-4848S040C SD card functionality, but added a GPIO fix for releasing 3-wire SPI pin sharing. - Fix for saving/loading settings for various apps
29 lines
494 B
C++
29 lines
494 B
C++
#ifdef ESP_PLATFORM
|
|
|
|
#include <tactility/log.h>
|
|
#include <tactility/check.h>
|
|
|
|
#include <Tactility/PartitionsEsp.h>
|
|
|
|
#include "esp_event.h"
|
|
#include "esp_netif.h"
|
|
|
|
constexpr auto* TAG = "Tactility";
|
|
|
|
namespace tt {
|
|
|
|
static void initNetwork() {
|
|
LOG_I(TAG, "Init network");
|
|
ESP_ERROR_CHECK(esp_netif_init());
|
|
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
|
}
|
|
|
|
void initEsp() {
|
|
check(initPartitionsEsp(), "Failed to init partitions");
|
|
initNetwork();
|
|
}
|
|
|
|
} // namespace
|
|
|
|
#endif
|