esp-idf: fix gating of experimental feature

Commit 31219223e5 removed the optional,
but didn't remove the default argument
This commit is contained in:
Olivier Goffart 2024-04-04 14:32:11 +02:00
parent 80b59653a2
commit e2bfb9a513

View file

@ -23,7 +23,7 @@
*/
void slint_esp_init(slint::PhysicalSize size, esp_lcd_panel_handle_t panel,
std::optional<esp_lcd_touch_handle_t> touch,
std::span<slint::platform::Rgb565Pixel> buffer1 = {},
std::span<slint::platform::Rgb565Pixel> buffer1,
std::optional<std::span<slint::platform::Rgb565Pixel>> buffer2 = {}
#ifdef SLINT_FEATURE_EXPERIMENTAL
,