Skip to content

Commit a29575d

Browse files
committed
Change clock source to one working for all boards
Thanks to @mathieucarbou for the suggestion.
1 parent e147627 commit a29575d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

OneWireESP32.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ OneWire32::OneWire32(uint8_t pin){
7171

7272
const rmt_rx_channel_config_t rxconf = {
7373
.gpio_num = owpin,
74-
.clk_src = RMT_CLK_SRC_APB,
74+
.clk_src = RMT_CLK_SRC_DEFAULT,
7575
.resolution_hz = 1000000,
7676
.mem_block_symbols = MAX_BLOCKS
7777
};
@@ -82,7 +82,7 @@ OneWire32::OneWire32(uint8_t pin){
8282

8383
const rmt_tx_channel_config_t txconf = {
8484
.gpio_num = owpin,
85-
.clk_src = RMT_CLK_SRC_APB,
85+
.clk_src = RMT_CLK_SRC_DEFAULT,
8686
.resolution_hz = 1000000,
8787
.mem_block_symbols = MAX_BLOCKS,
8888
.trans_queue_depth = 4,

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=esp32-ds18b20
2-
version=2.0.1
2+
version=2.0.2
33
author=junkfix
44
maintainer=junkfix
55
sentence=Minimal, non-blocking, DS18B20 sensor library for ESP32 using RMT pheripheral, supports multiple sensors, lightweight, no dependencies, will need Arduino esp32 3.x based on IDF 5.X

0 commit comments

Comments
 (0)