Skip to content

Commit 35710e3

Browse files
author
brentru
committed
add default arguments
1 parent d97cde3 commit 35710e3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/AdafruitIO_WiFi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef AdafruitIO_WICED AdafruitIO_WiFi;
4545

4646
#else
4747

48-
#error "Must define USE_AIRLIFT or USE_WINC1500 before including this file."
48+
#warning "Must define USE_AIRLIFT or USE_WINC1500 before including this file."
4949

5050
#endif
5151

src/wifi/AdafruitIO_AIRLIFT.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
6060
*/
6161
/**************************************************************************/
6262
AdafruitIO_AIRLIFT(const char *user, const char *key, const char *ssid,
63-
const char *pass, int ssPin, int ackPin, int rstPin,
64-
int gpio0Pin, SPIClass *wifi)
63+
const char *pass, int ssPin=10, int ackPin=9, int rstPin=6,
64+
int gpio0Pin=-1, SPIClass *wifi)
6565
: AdafruitIO(user, key) {
6666
_wifi = wifi;
6767
_ssPin = ssPin;

0 commit comments

Comments
 (0)