From 7d87baf8b2d591567cf5d68380b587e997487b28 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Wed, 22 May 2019 13:40:11 -0400 Subject: [PATCH] Fix initialization --- src/TinyGsmClientM95.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TinyGsmClientM95.h b/src/TinyGsmClientM95.h index 2fcb25a..038ec17 100644 --- a/src/TinyGsmClientM95.h +++ b/src/TinyGsmClientM95.h @@ -540,14 +540,15 @@ TINY_GSM_MODEM_GET_GPRS_IP_CONNECTED() return true; } - float getTemperature(uint16_t &milliVolts = 0) { + float getTemperature() { sendAT(GF("+QTEMP")); if (waitResponse(GF(GSM_NL "+QTEMP:")) != 1) { return (float)-9999; } streamSkipUntil(','); // Skip mode // Read charge of thermistor - milliVolts = stream.readStringUntil(',').toInt(); + // milliVolts = stream.readStringUntil(',').toInt(); + streamSkipUntil(','); // Skip thermistor charge float temp = stream.readStringUntil('\n').toFloat(); // Wait for final OK waitResponse();