Skip to content

Commit 5ed525d

Browse files
committed
Bugfix: _lastSyncRequestTickTime should be of type 'unsigned long' as that's the same type as 'millis()' returns, otherwise an overrun could occur earlier than necessary.
1 parent e5a6256 commit 5ed525d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoIoTCloudTCP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
9696

9797
State _state;
9898

99-
int _lastSyncRequestTickTime;
99+
unsigned long _lastSyncRequestTickTime;
100100
String _brokerAddress;
101101
uint16_t _brokerPort;
102102
uint8_t _mqtt_data_buf[MQTT_TRANSMIT_BUFFER_SIZE];

0 commit comments

Comments
 (0)