Skip to content

Commit 3e3f93f

Browse files
committed
Changes to support MKR 1010 and Nano 33 IOT
Added include guards Removed not needed code
1 parent 007e135 commit 3e3f93f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/wifi/AdafruitIO_MKR1010.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* All text above must be included in any redistribution.
1313
*/
1414

15+
#ifndef ADAFRUITIO_MKR1010_H
16+
#define ADAFRUITIO_MKR1010_H
1517

1618
#include "AdafruitIO.h"
1719
#include "Adafruit_MQTT.h"
@@ -78,4 +80,4 @@ class AdafruitIO_MKR1010 : public AdafruitIO {
7880
WiFiSSLClient *_client;
7981
};
8082

81-
83+
#endif ADAFRUITIO_MKR1010_H

src/wifi/AdafruitIO_WINC1500.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ class AdafruitIO_WINC1500 : public AdafruitIO {
130130
_status = AIO_SSID_INVALID;
131131
} else {
132132
_disconnect();
133-
// Comment out line below for MKR1010
134-
//WiFi.setPins(_winc_cs, _winc_irq, _winc_rst, _winc_en); //
133+
WiFi.setPins(_winc_cs, _winc_irq, _winc_rst, _winc_en); //
135134

136135
// no shield? bail
137136
if (WiFi.status() == WL_NO_SHIELD) {

0 commit comments

Comments
 (0)