Fixed unused variable

This commit is contained in:
Sara Damiano
2019-07-11 16:38:10 -04:00
parent a9f91d7ba9
commit b4620b24b3

View File

@@ -709,7 +709,6 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
* NTP server functions * NTP server functions
*/ */
boolean isValidNumber(String str) { boolean isValidNumber(String str) {
boolean isNum = false;
if(!(str.charAt(0) == '+' || str.charAt(0) == '-' || isDigit(str.charAt(0)))) return false; if(!(str.charAt(0) == '+' || str.charAt(0) == '-' || isDigit(str.charAt(0)))) return false;
for(byte i=1;i < str.length(); i++) { for(byte i=1;i < str.length(); i++) {