fix build errors

This commit is contained in:
jacqueline
2022-12-02 13:39:00 +11:00
parent 71a4f5166f
commit 222c810b07
27 changed files with 566 additions and 510 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ namespace console {
class AppConsole : public Console {
public:
AppConsole(){};
virtual ~AppConsole(){};
AppConsole() {}
virtual ~AppConsole() {}
protected:
virtual auto RegisterExtraComponents() -> void;
+2 -2
View File
@@ -110,6 +110,7 @@ extern "C" void app_main(void) {
(void*)lvglArgs, 1, sLvglStack,
&sLvglTaskBuffer, 1);
/*
ESP_LOGI(TAG, "Init audio output (I2S)");
auto sink_res = drivers::I2SAudioOutput::create(expander);
if (sink_res.has_error()) {
@@ -118,7 +119,6 @@ extern "C" void app_main(void) {
}
std::unique_ptr<drivers::IAudioOutput> sink = std::move(sink_res.value());
/*
ESP_LOGI(TAG, "Init audio pipeline");
auto playback_res = drivers::AudioPlayback::create(std::move(sink));
if (playback_res.has_error()) {
@@ -131,7 +131,7 @@ extern "C" void app_main(void) {
*/
ESP_LOGI(TAG, "Launch console");
console::AppConsole console(playback.get());
console::AppConsole console;
console.Launch();
while (1) {