mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
Fix WDT reset during dallas search algorithm (#3293)
This commit is contained in:
parent
ec3618ecb8
commit
24b75b7ed6
2 changed files with 0 additions and 5 deletions
|
@ -142,7 +142,6 @@ void IRAM_ATTR ESPOneWire::select(uint64_t address) {
|
||||||
void IRAM_ATTR ESPOneWire::reset_search() {
|
void IRAM_ATTR ESPOneWire::reset_search() {
|
||||||
this->last_discrepancy_ = 0;
|
this->last_discrepancy_ = 0;
|
||||||
this->last_device_flag_ = false;
|
this->last_device_flag_ = false;
|
||||||
this->last_family_discrepancy_ = 0;
|
|
||||||
this->rom_number_ = 0;
|
this->rom_number_ = 0;
|
||||||
}
|
}
|
||||||
uint64_t IRAM_ATTR ESPOneWire::search() {
|
uint64_t IRAM_ATTR ESPOneWire::search() {
|
||||||
|
@ -195,9 +194,6 @@ uint64_t IRAM_ATTR ESPOneWire::search() {
|
||||||
|
|
||||||
if (!branch) {
|
if (!branch) {
|
||||||
last_zero = id_bit_number;
|
last_zero = id_bit_number;
|
||||||
if (last_zero < 9) {
|
|
||||||
this->last_discrepancy_ = last_zero;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ class ESPOneWire {
|
||||||
|
|
||||||
ISRInternalGPIOPin pin_;
|
ISRInternalGPIOPin pin_;
|
||||||
uint8_t last_discrepancy_{0};
|
uint8_t last_discrepancy_{0};
|
||||||
uint8_t last_family_discrepancy_{0};
|
|
||||||
bool last_device_flag_{false};
|
bool last_device_flag_{false};
|
||||||
uint64_t rom_number_{0};
|
uint64_t rom_number_{0};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue