Skip to content

Commit 322556d

Browse files
brentrubrentru
authored andcommitted
remove spi argment
1 parent da49d16 commit 322556d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/wifi/AdafruitIO_AIRLIFT.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "Adafruit_MQTT.h"
2727
#include "Adafruit_MQTT_Client.h"
2828

29-
#define SPIWIFI SPI
3029
#define NINAFWVER "1.0.0"
3130

3231
/****************************************************************************/
@@ -58,9 +57,8 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
5857
A reference to the gpio0Pin Pin.
5958
*/
6059
/**************************************************************************/
61-
AdafruitIO_AIRLIFT(const char *user, const char *key, const char *ssid, const char *pass, int ssPin, int ackPin, int rstPin, int gpio0Pin, SPIClass& wifi) : AdafruitIO(user, key)
60+
AdafruitIO_AIRLIFT(const char *user, const char *key, const char *ssid, const char *pass, int ssPin, int ackPin, int rstPin, int gpio0Pin) : AdafruitIO(user, key)
6261
{
63-
_wifi = wifi;
6462
_ssPin = ssPin;
6563
_ackPin = ackPin;
6664
_rstPin = rstPin;
@@ -144,8 +142,6 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
144142
String _fv = "0.0.0";
145143
int _ssPin, _ackPin, _rstPin, _gpio0Pin = -1;
146144

147-
SPIClass& _wifi;
148-
149145
WiFiSSLClient *_http_client;
150146
WiFiSSLClient *_mqtt_client;
151147

@@ -159,7 +155,7 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
159155
{
160156
// setup ESP32 pins
161157
if (_ssPin != -1) {
162-
WiFi.setPins(_ssPin, _ackPin, _rstPin, _gpio0Pin, _wifi);
158+
WiFi.setPins(_ssPin, _ackPin, _rstPin, _gpio0Pin, wifi);
163159
}
164160

165161
// check esp32 module version against NINAFWVER

0 commit comments

Comments
 (0)