From 6c0ec95a7ea7661f0d1cb5fcc66c6773afa17e7e Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Thu, 5 Sep 2019 13:23:46 -0400 Subject: [PATCH] Oops, fixed some signed/unsigned comparisons --- src/TinyGsmClientBG96.h | 2 +- src/TinyGsmClientM95.h | 2 +- src/TinyGsmClientMC60.h | 2 +- src/TinyGsmClientSIM5360.h | 6 ++++-- src/TinyGsmClientSIM7000.h | 2 +- src/TinyGsmClientSIM7600.h | 2 +- src/TinyGsmClientSIM800.h | 2 +- src/TinyGsmClientSaraR4.h | 2 +- src/TinyGsmClientSequansMonarch.h | 2 +- src/TinyGsmClientUBLOX.h | 2 +- 10 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/TinyGsmClientBG96.h b/src/TinyGsmClientBG96.h index 1335667..c9f4510 100644 --- a/src/TinyGsmClientBG96.h +++ b/src/TinyGsmClientBG96.h @@ -556,7 +556,7 @@ protected: } int len = stream.readStringUntil('\n').toInt(); - for (size_t i=0; isock_available--; // ^^ One less character available after moving from modem's FIFO to our FIFO diff --git a/src/TinyGsmClientMC60.h b/src/TinyGsmClientMC60.h index ce23b76..ae15de1 100644 --- a/src/TinyGsmClientMC60.h +++ b/src/TinyGsmClientMC60.h @@ -646,7 +646,7 @@ protected: streamSkipUntil(','); // skip port streamSkipUntil(','); // skip connection type (TCP/UDP) int len = stream.readStringUntil('\n').toInt(); // read length - for (size_t i=0; isock_available--; // ^^ One less character available after moving from modem's FIFO to our FIFO diff --git a/src/TinyGsmClientSIM5360.h b/src/TinyGsmClientSIM5360.h index 8d27f75..46b5eaf 100644 --- a/src/TinyGsmClientSIM5360.h +++ b/src/TinyGsmClientSIM5360.h @@ -660,7 +660,9 @@ protected: return false; } - if (ssl) DBG("SSL not yet supported on this module!"); + if (ssl) { + DBG("SSL not yet supported on this module!"); + } // Establish a connection in multi-socket mode uint32_t timeout_ms = ((uint32_t)timeout_s) * 1000; @@ -706,7 +708,7 @@ protected: // ^^ Requested number of data bytes (1-1460 bytes)to be read int len_confirmed = stream.readStringUntil('\n').toInt(); // ^^ The data length which not read in the buffer - for (size_t i=0; i_timeout)) { TINY_GSM_YIELD(); } diff --git a/src/TinyGsmClientSIM7000.h b/src/TinyGsmClientSIM7000.h index d9c5393..ad13af1 100644 --- a/src/TinyGsmClientSIM7000.h +++ b/src/TinyGsmClientSIM7000.h @@ -865,7 +865,7 @@ protected: // ^^ Confirmed number of data bytes to be read, which may be less than requested. // 0 indicates that no data can be read. // This is actually be the number of bytes that will be remaining after the read - for (size_t i=0; i_timeout)) { TINY_GSM_YIELD(); } diff --git a/src/TinyGsmClientSIM7600.h b/src/TinyGsmClientSIM7600.h index 00f6d04..b9d767a 100644 --- a/src/TinyGsmClientSIM7600.h +++ b/src/TinyGsmClientSIM7600.h @@ -712,7 +712,7 @@ protected: // ^^ Requested number of data bytes (1-1460 bytes)to be read int len_confirmed = stream.readStringUntil('\n').toInt(); // ^^ The data length which not read in the buffer - for (size_t i=0; i_timeout)) { TINY_GSM_YIELD(); } diff --git a/src/TinyGsmClientSIM800.h b/src/TinyGsmClientSIM800.h index e45b1d9..c505eca 100644 --- a/src/TinyGsmClientSIM800.h +++ b/src/TinyGsmClientSIM800.h @@ -845,7 +845,7 @@ protected: // ^^ Confirmed number of data bytes to be read, which may be less than requested. // 0 indicates that no data can be read. // This is actually be the number of bytes that will be remaining after the read - for (size_t i=0; i_timeout)) { TINY_GSM_YIELD(); } diff --git a/src/TinyGsmClientSaraR4.h b/src/TinyGsmClientSaraR4.h index eaf1606..6044713 100644 --- a/src/TinyGsmClientSaraR4.h +++ b/src/TinyGsmClientSaraR4.h @@ -622,7 +622,7 @@ protected: int len = stream.readStringUntil(',').toInt(); streamSkipUntil('\"'); - for (size_t i=0; i_timeout)) { TINY_GSM_YIELD(); } \ char c = stream.read(); \ diff --git a/src/TinyGsmClientUBLOX.h b/src/TinyGsmClientUBLOX.h index 579364b..09702b1 100644 --- a/src/TinyGsmClientUBLOX.h +++ b/src/TinyGsmClientUBLOX.h @@ -609,7 +609,7 @@ protected: int len = stream.readStringUntil(',').toInt(); streamSkipUntil('\"'); - for (size_t i=0; i