remove unused ISR allocation

this was blocking the i2s driver somehow!(?)
This commit is contained in:
jacqueline
2023-01-31 14:39:52 +11:00
parent ef8d404b15
commit aae1871999
3 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -92,12 +92,10 @@ auto I2SAudioOutput::ProcessStreamInfo(const StreamInfo& info)
auto I2SAudioOutput::ProcessChunk(const cpp::span<std::byte>& chunk)
-> cpp::result<std::size_t, AudioProcessingError> {
ESP_LOGI(kTag, "playing samples");
SetSoftMute(false);
// TODO(jacqueline): write smaller parts with a small delay so that we can
// be responsive to pause and seek commands.
std::size_t bytes_written = dac_->WriteData(chunk, portMAX_DELAY);
ESP_LOGI(kTag, "played %u bytes", bytes_written);
dac_->WriteData(chunk, portMAX_DELAY);
return 0;
}
+1 -1
View File
@@ -241,7 +241,7 @@ void Display::Flush(lv_disp_drv_t* disp_drv,
// lv_disp_flush_ready(&driver_);
}
void IRAM_ATTR Display::PostTransaction(const spi_transaction_t& transaction) {
void Display::PostTransaction(const spi_transaction_t& transaction) {
if (reinterpret_cast<uintptr_t>(transaction.user) & LVGL_FLUSH) {
lv_disp_flush_ready(&driver_);
}
-1
View File
@@ -89,7 +89,6 @@ void lvgl_main(void* voidArgs) {
extern "C" void app_main(void) {
ESP_LOGI(TAG, "Initialising peripherals");
ESP_ERROR_CHECK(gpio_install_isr_service(ESP_INTR_FLAG_LOWMED));
ESP_ERROR_CHECK(drivers::init_i2c());
ESP_ERROR_CHECK(drivers::init_spi());