Changes to support MKR 1010 and Nano 33 IOT

Added include guards
Removed not needed code
This commit is contained in:
darumsdad 2021-12-08 20:35:38 -05:00
parent 007e1357e3
commit 3e3f93f530
2 changed files with 4 additions and 3 deletions

View file

@ -12,6 +12,8 @@
* All text above must be included in any redistribution.
*/
#ifndef ADAFRUITIO_MKR1010_H
#define ADAFRUITIO_MKR1010_H
#include "AdafruitIO.h"
#include "Adafruit_MQTT.h"
@ -78,4 +80,4 @@ protected:
WiFiSSLClient *_client;
};
#endif ADAFRUITIO_MKR1010_H

View file

@ -130,8 +130,7 @@ protected:
_status = AIO_SSID_INVALID;
} else {
_disconnect();
// Comment out line below for MKR1010
//WiFi.setPins(_winc_cs, _winc_irq, _winc_rst, _winc_en); //
WiFi.setPins(_winc_cs, _winc_irq, _winc_rst, _winc_en); //
// no shield? bail
if (WiFi.status() == WL_NO_SHIELD) {