Skip to content

Commit

Permalink
fixed the hardcoded pin in dallas sensor class
Browse files Browse the repository at this point in the history
  • Loading branch information
iltis42 committed Nov 16, 2023
1 parent 0a5e969 commit 8e7d320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/DS18B20.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DS18B20::DS18B20(gpio_num_t pin, uint8_t res, int max_dev ) {
bool DS18B20::begin(){
ESP_LOGI(FNAME,"DS18B20::begin");
gpio_set_pull_mode(_pin, GPIO_PULLUP_ONLY);
ow = new OnewireRmt( GPIO_NUM_23, RMT_CHANNEL_0, RMT_CHANNEL_1);
ow = new OnewireRmt(_pin, RMT_CHANNEL_0, RMT_CHANNEL_1);
dallas = new DallasRmt( ow );
dallas->begin();
numDevices = dallas->getDeviceCount();
Expand Down

0 comments on commit 8e7d320

Please sign in to comment.