summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-01-20 09:48:29 +1100
committerjacqueline <me@jacqueline.id.au>2023-01-20 09:48:29 +1100
commit4c88fcc4a57b1fae7b6edaf42034945d5ac24a89 (patch)
treee44c384ba40e9eab37374b3f339c79e9bf1fde5d /src/main
parente53dfc4cc59fd0c3b01dc74762c1904f3ec9cc06 (diff)
downloadtangara-fw-4c88fcc4a57b1fae7b6edaf42034945d5ac24a89.tar.gz
fix build issues with new pipeline
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 623d948d..deef29e1 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -98,12 +98,12 @@ extern "C" void app_main(void) {
drivers::GpioExpander* expander = new drivers::GpioExpander();
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::SD_MUX_SWITCH, drivers::GpioExpander::SD_MUX_ESP);
- });
+ 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::SD_MUX_SWITCH,
+ drivers::GpioExpander::SD_MUX_ESP);
+ });
ESP_LOGI(TAG, "Init SD card");
auto storage_res = drivers::SdStorage::create(expander);
@@ -119,6 +119,8 @@ extern "C" void app_main(void) {
(void*)lvglArgs, 1, sLvglStack,
&sLvglTaskBuffer, 1);
+ // TODO(jacqueline): re-enable this once our pipeline works.
+ /*
ESP_LOGI(TAG, "Init audio pipeline");
auto playback_res = audio::AudioPlayback::create(expander, storage);
if (playback_res.has_error()) {
@@ -127,9 +129,10 @@ extern "C" void app_main(void) {
}
std::shared_ptr<audio::AudioPlayback> playback =
std::move(playback_res.value());
+ */
ESP_LOGI(TAG, "Launch console");
- console::AppConsole console(playback.get());
+ console::AppConsole console(nullptr);
console.Launch();
while (1) {