Browse Source

Tell when a conversion is ignored

pull/17/head
destroyedlolo 7 years ago
parent
commit
f0ff69d8d1
  1. 6
      examples/DS18B20_DHT22/DS18B20_DHT22.ino

6
examples/DS18B20_DHT22/DS18B20_DHT22.ino

@ -59,6 +59,10 @@ void owRcv( OneWireSlave::ReceiveEvent evt, byte cmd ){
state = DeviceState::CONVERTING;
OWSlave.beginWriteBit(0, true); // send zeros as long as the conversion is not finished
}
#ifdef DEBUG
else
Serial.println(F("Ignored StartConv"));
#endif
break;
case OW_Cmd::READ_SCRATCHPAD:
state = DeviceState::WAIT4RESET;
@ -68,7 +72,7 @@ void owRcv( OneWireSlave::ReceiveEvent evt, byte cmd ){
default:
Serial.print(F("Unknown command :"));
Serial.println( cmd, HEX );
#endif
#endif
}
}
}

Loading…
Cancel
Save