Use dtostrf to format RTD readings.
This commit is contained in:
parent
7d10dbf75f
commit
e6e133cff2
@ -196,16 +196,18 @@ char* KettleSetpoint() {
|
|||||||
* Return the actual temp as char.
|
* Return the actual temp as char.
|
||||||
*/
|
*/
|
||||||
char* KettleActual() {
|
char* KettleActual() {
|
||||||
int temp = (int)(kettleRTD.temperature(RNOMINAL_KETTLE, RREF_KETTLE)*10);
|
char buffer[6];
|
||||||
return (char*)(temp/10);
|
dtostrf(kettleRTD.temperature(RNOMINAL_KETTLE, RREF_KETTLE), 5, 1, buffer);
|
||||||
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the actual temp as char.
|
* Return the actual temp as char.
|
||||||
*/
|
*/
|
||||||
char* MashActual() {
|
char* MashActual() {
|
||||||
int temp = (int)(mashRTD.temperature(RNOMINAL_MASH, RREF_MASH)*10);
|
char buffer[6];
|
||||||
return (char*)(temp/10);
|
dtostrf(mashRTD.temperature(RNOMINAL_MASH, RREF_MASH), 5, 1, buffer);
|
||||||
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* SetpointUnit(){
|
char* SetpointUnit(){
|
||||||
|
Loading…
Reference in New Issue
Block a user