fixed probable cause of rare 1-wire bus deadlock where the Arduino would not release the bus and keep pulling it low forever (thanks to fari on http://www.stm32duino.com/viewtopic.php?f=9&t=1852 for posting this fix)

This commit is contained in:
Youen Toupin 2017-04-25 21:11:19 +02:00
parent 3e75b83248
commit a108089f02

View File

@ -390,6 +390,7 @@ void OneWireSlave::endSendBitZero_()
void OneWireSlave::beginWaitReset_()
{
disableTimer_();
pin_.inputMode();
pin_.attachInterrupt(&OneWireSlave::waitReset_, CHANGE);
resetStart_ = (unsigned int)-1;
}