mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00:00
fix(dallas): make recovery time for 1-bit equal to that of 0-bit (#6763)
This commit is contained in:
parent
1ff302b341
commit
51c5d1714c
@ -60,7 +60,7 @@ void HOT IRAM_ATTR GPIOOneWireBus::write_bit_(bool bit) {
|
|||||||
// recovery time: t_rec: min=1µs
|
// recovery time: t_rec: min=1µs
|
||||||
// ds18b20 appears to read the bus after roughly 14µs
|
// ds18b20 appears to read the bus after roughly 14µs
|
||||||
uint32_t delay0 = bit ? 6 : 60;
|
uint32_t delay0 = bit ? 6 : 60;
|
||||||
uint32_t delay1 = bit ? 54 : 5;
|
uint32_t delay1 = bit ? 59 : 5;
|
||||||
|
|
||||||
// delay A/C
|
// delay A/C
|
||||||
delayMicroseconds(delay0);
|
delayMicroseconds(delay0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user