From 61c91b3cdb2c9dd655f3adf0f461f5cefb3b2e9b Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 10 Feb 2023 15:32:21 +1100 Subject: Mostly working pipeline, including proper EOF signalling --- src/main/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main') diff --git a/src/main/main.cpp b/src/main/main.cpp index fde416ce..08b31cd3 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -48,7 +48,7 @@ struct LvglArgs { drivers::GpioExpander* gpio_expander; }; -void lvgl_main(void* voidArgs) { +extern "C" void lvgl_main(void* voidArgs) { ESP_LOGI(TAG, "starting LVGL task"); LvglArgs* args = (LvglArgs*)voidArgs; drivers::GpioExpander* gpio_expander = args->gpio_expander; @@ -97,10 +97,10 @@ extern "C" void app_main(void) { ESP_LOGI(TAG, "Enable power rails for development"); expander->with([&](auto& gpio) { - gpio.set_pin(drivers::GpioExpander::AUDIO_POWER_ENABLE, 1); - gpio.set_pin(drivers::GpioExpander::SD_CARD_POWER_ENABLE, 1); + gpio.set_pin(drivers::GpioExpander::USB_INTERFACE_POWER_ENABLE, 0); + gpio.set_pin(drivers::GpioExpander::SD_CARD_POWER_ENABLE, 0); gpio.set_pin(drivers::GpioExpander::SD_MUX_SWITCH, - drivers::GpioExpander::SD_MUX_ESP); + drivers::GpioExpander::SD_MUX_USB); }); ESP_LOGI(TAG, "Init battery measurement"); -- cgit v1.2.3