Skip to content

Commit

Permalink
Fix file download linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SRGDamia1 committed Jul 17, 2019
1 parent 0b5d650 commit 00936e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions examples/FileDownload/FileDownload.ino
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ const char wifiPass[] = "YourWiFiPass";
const char server[] = "vsh.pp.ua";
const int port = 80;

#include <TinyGsmClient.h>
#include <CRC32.h>

const char resource[] = "/TinyGSM/test_1k.bin";
uint32_t knownCRC32 = 0x6f50d767;
uint32_t knownFileSize = 1024; // In case server does not send it

#include <TinyGsmClient.h>
#include <CRC32.h>

#ifdef DUMP_AT_COMMANDS
#include <StreamDebugger.h>
StreamDebugger debugger(SerialAT, SerialMon);
Expand Down Expand Up @@ -123,7 +123,7 @@ void setup() {

void printPercent(uint32_t readLength, uint32_t contentLength) {
// If we know the total length
if (contentLength != -1) {
if (contentLength != (uint32_t)-1) {
SerialMon.print("\r ");
SerialMon.print((100.0 * readLength) / contentLength);
SerialMon.print('%');
Expand Down
6 changes: 3 additions & 3 deletions src/TinyGsmClientSIM800.h
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,12 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
return true;
}

float getTemperature() TINY_GSM_ATTR_NOT_AVAILABLE;

/*
* NTP server functions
*/

boolean isValidNumber(String str) {
if(!(str.charAt(0) == '+' || str.charAt(0) == '-' || isDigit(str.charAt(0)))) return false;

Expand Down Expand Up @@ -743,7 +746,6 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
}

byte NTPServerSync(String server = "pool.ntp.org", byte TimeZone = 3) {
//Serial.println("Sync time with NTP server.");
sendAT(GF("+CNTPCID=1"));
if (waitResponse(10000L) != 1) {
return -1;
Expand All @@ -769,8 +771,6 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
return -1;
}

float getTemperature() TINY_GSM_ATTR_NOT_AVAILABLE;

/*
* Client related functions
*/
Expand Down

0 comments on commit 00936e9

Please sign in to comment.