RFM69::readTemperature no longer emits * characters on Serial while waiting for a reading
This commit is contained in:
parent
0518667c19
commit
13882ae71c
|
|
@ -474,7 +474,7 @@ byte RFM69::readTemperature(byte calFactor) //returns centigrade
|
|||
{
|
||||
setMode(RF69_MODE_STANDBY);
|
||||
writeReg(REG_TEMP1, RF_TEMP1_MEAS_START);
|
||||
while ((readReg(REG_TEMP1) & RF_TEMP1_MEAS_RUNNING)) Serial.print('*');
|
||||
while ((readReg(REG_TEMP1) & RF_TEMP1_MEAS_RUNNING));
|
||||
return ~readReg(REG_TEMP2) + COURSE_TEMP_COEF + calFactor; //'complement'corrects the slope, rising temp = rising val
|
||||
} // COURSE_TEMP_COEF puts reading in the ballpark, user can add additional correction
|
||||
|
||||
|
|
@ -482,4 +482,4 @@ void RFM69::rcCalibration()
|
|||
{
|
||||
writeReg(REG_OSC1, RF_OSC1_RCCAL_START);
|
||||
while ((readReg(REG_OSC1) & RF_OSC1_RCCAL_DONE) == 0x00);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue