Skip to content

Commit

Permalink
fix: do not set IRAM ISR flag if the config is not set (#48)
Browse files Browse the repository at this point in the history
* fix: do not set IRAM ISR flag if the config is not set
  • Loading branch information
Tasssadar authored Jun 27, 2024
1 parent ede05a6 commit de331ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"maintainer": true
}
],
"version": "3.1.2",
"version": "3.1.3",
"frameworks": ["arduino", "espidf"],
"platforms": "espressif32"
}
8 changes: 7 additions & 1 deletion src/RmtDriver4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ esp_err_t RmtDriver::init() {
}

esp_err_t RmtDriver::registerIsr(bool isFirstRegisteredChannel) {
auto err = rmt_driver_install(_channel, 0, ESP_INTR_FLAG_IRAM);
auto err = rmt_driver_install(_channel, 0,
#if defined(CONFIG_RMT_ISR_IRAM_SAFE)
ESP_INTR_FLAG_IRAM
#else
0
#endif
);
if (err != ESP_OK) {
return err;
}
Expand Down

0 comments on commit de331ca

Please sign in to comment.