Skip to content

Commit

Permalink
Adjusted temperature and humidity delta based on SCK 2.0 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vicobarberan committed Aug 29, 2019
1 parent bbdc606 commit 3e7b809
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sam/src/SckBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1771,14 +1771,15 @@ bool SckBase::getReading(OneSensor *wichSensor)
// Correct depending on battery/USB and network/sd card status
if (charger.onUSB) {
if (st.mode == MODE_NET) wichSensor->reading = String(aux_temp - 2.7);
else wichSensor->reading = String(aux_temp - 0.95);
else wichSensor->reading = String(aux_temp - 1.25);
} else {
wichSensor->reading = String(aux_temp - 0.95);
if (st.mode == MODE_NET) wichSensor->reading = String(aux_temp - 1.15);
else wichSensor->reading = String(aux_temp - 0.95);
}

} else if(wichSensor->type == SENSOR_HUMIDITY) {
float aux_hum = wichSensor->reading.toFloat();
wichSensor->reading = String(aux_hum + 11);
wichSensor->reading = String(aux_hum + 6.5);
}

return true;
Expand Down

0 comments on commit 3e7b809

Please sign in to comment.