Skip to content

Commit 2130a9a

Browse files
committed
Changing #ifdef OTA_ENABLED to #if OTA_ENABLED since the evaluation of that line seems to be compiler version dependent
1 parent 63e85b2 commit 2130a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ArduinoIoTCloudTCP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort)
120120
_brokerAddress = brokerAddress;
121121
_brokerPort = brokerPort;
122122

123-
#ifdef OTA_ENABLED
123+
#if OTA_ENABLED
124124
/* Calculate the SHA256 checksum over the firmware stored in the flash of the
125125
* MCU. Note: As we don't know the length per-se we read chunks of the flash
126126
* until we detect one containing only 0xFF (= flash erased). This only works

0 commit comments

Comments
 (0)