Fix QTEMP on M95, fixes #377

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2020-04-15 08:36:11 -04:00
parent dbd677e6e7
commit 9f2068cecb

View File

@@ -387,7 +387,7 @@ class TinyGsmM95 : public TinyGsmModem<TinyGsmM95>,
*/ */
protected: protected:
float getTemperatureImpl() { float getTemperatureImpl() {
sendAT(GF("+QTEMP")); sendAT(GF("+QTEMP?"));
if (waitResponse(GF(GSM_NL "+QTEMP:")) != 1) { if (waitResponse(GF(GSM_NL "+QTEMP:")) != 1) {
return static_cast<float>(-9999); return static_cast<float>(-9999);
} }