Wifi from new settings

This commit is contained in:
2021-12-29 00:40:05 +01:00
parent 32d57e4f6a
commit 67249cfb2f
25 changed files with 188 additions and 205 deletions

View File

@@ -66,12 +66,6 @@ extern "C" void app_main()
else
ESP_LOGE("BOBBY", "init() failed");
bootLabel.redraw("deviceName");
if (const auto result = wifi_stack::get_default_mac_addr())
std::sprintf(deviceName, STRING(DEVICE_PREFIX) "_%02hhx%02hhx%02hhx", result->at(3), result->at(4), result->at(5));
else
ESP_LOGE("MAIN", "get_default_mac_addr() failed: %.*s", result.error().size(), result.error().data());
for (const auto &task : schedulerTasks)
{
bootLabel.redraw(task.name());