Skip to content

New Dallas temperature sensor example #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Dallas temperature sensor example update
Added one space :-)

Forgot to mention details about the previous commit: it changed a number of things based on feedback from Hek. Including spotting a millis wrap bug, very impressive.
  • Loading branch information
flatsiedatsie authored Mar 23, 2017
commit 42bf4eea465db2ab261c8e9e7cfb706820de43bd
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void loop()
if(isCalculating == true && currentMillis - conversionTime > previousMeasurementMillis) {
isCalculating = false; // We're doing this now, so check calculating off the to-do list too.
for (int i=0; i<numSensors && i<maxAttachedDS18B20; i++){ // Loop through all the attached temperature sensors.
float temperature = getControllerConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i); // Fetch the temperature form the current sensor
float temperature = getControllerConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i); // Fetch the temperature form the current sensor
Serial.print("Sensor #");
Serial.print(i);
Serial.print(" says it is ");
Expand Down