From 469728593266e862b82acf35f4e1213aabc16135 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Mon, 26 Aug 2019 18:58:56 -0400 Subject: [PATCH] Fix a typo in temperature for SARA R4 --- src/TinyGsmClientSaraR4.h | 2 +- tools/Diagnostics/Diagnostics.ino | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/TinyGsmClientSaraR4.h b/src/TinyGsmClientSaraR4.h index 464e0ea..dec40b1 100644 --- a/src/TinyGsmClientSaraR4.h +++ b/src/TinyGsmClientSaraR4.h @@ -525,7 +525,7 @@ TINY_GSM_MODEM_GET_GPRS_IP_CONNECTED() streamSkipUntil(','); // Skip units (C/F) int16_t res = stream.readStringUntil('\n').toInt(); float temp = -9999; - if (res != 655355) { + if (res != 65535) { temp = ((float)res)/10; } return temp; diff --git a/tools/Diagnostics/Diagnostics.ino b/tools/Diagnostics/Diagnostics.ino index fa6ce16..b66e1b4 100644 --- a/tools/Diagnostics/Diagnostics.ino +++ b/tools/Diagnostics/Diagnostics.ino @@ -84,9 +84,9 @@ const char resource[] = "/TinyGSM/logo.txt"; #include #ifdef DUMP_AT_COMMANDS -#include -StreamDebugger debugger(SerialAT, SerialMon); -TinyGsm modem(debugger); + #include + StreamDebugger debugger(SerialAT, SerialMon); + TinyGsm modem(debugger); #else TinyGsm modem(SerialAT); #endif @@ -104,12 +104,9 @@ void setup() { SerialMon.begin(115200); delay(10); + // !!!!!!!!!!! // Set your reset, enable, power pins here - pinMode(20, OUTPUT); - digitalWrite(20, HIGH); - - pinMode(23, OUTPUT); - digitalWrite(23, HIGH); + // !!!!!!!!!!! SerialMon.println("Wait..."); @@ -139,7 +136,7 @@ void loop() { SerialMon.println(F(" [OK]")); String modemInfo = modem.getModemInfo(); - SerialMon.print("Modem: "); + SerialMon.print("Modem Info: "); SerialMon.println(modemInfo); #if TINY_GSM_USE_GPRS