Skip to content

Commit

Permalink
fix: pin type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasssadar committed Jul 10, 2023
1 parent 713065b commit ede05a6
Show file tree
Hide file tree
Showing 2 changed files with 2 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.1",
"version": "3.1.2",
"frameworks": ["arduino", "espidf"],
"platforms": "espressif32"
}
2 changes: 1 addition & 1 deletion src/RmtDriver5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ esp_err_t RmtDriver::init() {

esp_err_t RmtDriver::registerIsr(bool isFirstRegisteredChannel) {
rmt_tx_channel_config_t conf = {
.gpio_num = _pin,
.gpio_num = (gpio_num_t)_pin,
.clk_src = RMT_CLK_SRC_APB,
.resolution_hz = RMT_RESOLUTION_HZ,
.mem_block_symbols = SOC_RMT_MEM_WORDS_PER_CHANNEL,
Expand Down

0 comments on commit ede05a6

Please sign in to comment.