8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b2578c + 61f868a commit ebfde5cCopy full SHA for ebfde5c
shared-module/onewireio/OneWire.c
@@ -59,8 +59,10 @@ bool common_hal_onewireio_onewire_reset(onewireio_onewire_obj_t *self) {
59
common_hal_mcu_delay_us(70);
60
bool value = common_hal_digitalio_digitalinout_get_value(&self->pin);
61
common_hal_mcu_delay_us(410);
62
+ // test if bus returned high (idle) and not stuck at low
63
+ bool idle = common_hal_digitalio_digitalinout_get_value(&self->pin);
64
common_hal_mcu_enable_interrupts();
- return value;
65
+ return value || !idle;
66
}
67
68
bool common_hal_onewireio_onewire_read_bit(onewireio_onewire_obj_t *self) {
0 commit comments