fix mistake in example for .active_index() (#2499)

This commit is contained in:
Bascht74 2022-12-01 20:03:57 +01:00 committed by GitHub
parent b6fa6d9316
commit a7e8ab3b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,7 +299,7 @@ advanced stuff (see the full API Reference for more info).
auto index = id(my_select).active_index();
if (index.has_value()) {
ESP_LOGI("main", "Option at index %d is active", index);
ESP_LOGI("main", "Option at index %d is active", index.value());
} else {
ESP_LOGI("main", "No option is active");
}