Skip to content

Commit

Permalink
try fix negative temperatures in log
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxineMuster authored Nov 6, 2024
1 parent 978a02b commit cf7dfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/drv_ds1820_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ void DS1820_OnEverySecond() {
dsread=0;
lastconv=g_secondsElapsed;
CHANNEL_Set(g_cfg.pins.channels[Pin], t, CHANNEL_SET_FLAG_SILENT);
DS1820_LOG(INFO, "Temp=%i.%02i", (int)t/100 , (int)t%100);
DS1820_LOG(INFO, "Temp=%i.%02i", (int)t/100 , frac);
}
}
else if (dsread == 0 && (g_secondsElapsed % ds18_conversionPeriod == 0 || lastconv == 0)) {
Expand Down

0 comments on commit cf7dfe0

Please sign in to comment.