Fix QTEMP on M95, fixes #377
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user