File tree 2 files changed +7
-7
lines changed
ESP32/examples/Timer/RepeatTimer
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ void setup() {
33
33
Serial.begin (115200 );
34
34
35
35
// Set BTN_STOP_ALARM to input mode
36
- pinMode (BTN_STOP_ALARM, INPUT );
36
+ pinMode (BTN_STOP_ALARM, INPUT_PULLUP );
37
37
38
38
// Create semaphore to inform us when the timer has fired
39
39
timerSemaphore = xSemaphoreCreateBinary ();
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ class ESPLwIPClient : public Client {
35
35
36
36
class NetworkClient : public ESPLwIPClient {
37
37
protected:
38
- std::shared_ptr<NetworkClientSocketHandle> clientSocketHandle;
39
- std::shared_ptr<NetworkClientRxBuffer> _rxBuffer;
40
- bool _connected;
41
- bool _sse;
38
+ std::shared_ptr<NetworkClientSocketHandle> clientSocketHandle = nullptr ;
39
+ std::shared_ptr<NetworkClientRxBuffer> _rxBuffer = nullptr ;
40
+ bool _connected = false ;
41
+ bool _sse = false ;
42
42
int _timeout;
43
- int _lastWriteTimeout;
44
- int _lastReadTimeout;
43
+ int _lastWriteTimeout = 0 ;
44
+ int _lastReadTimeout = 0 ;
45
45
46
46
public:
47
47
NetworkClient *next;
You can’t perform that action at this time.
0 commit comments