From 431603ad696af720917bce7f5c2f908aad72780c Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 12 Jun 2015 14:25:33 +0300 Subject: [PATCH] esp8266: esp_connect(): The function is now vararg. Fixes regression from a previous commit. --- esp8266/modesp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp8266/modesp.c b/esp8266/modesp.c index e9969d1c5d..35330be7d1 100644 --- a/esp8266/modesp.c +++ b/esp8266/modesp.c @@ -549,7 +549,7 @@ STATIC mp_obj_t esp_connect(mp_uint_t n_args, const mp_obj_t *args) { return mp_const_none; } -STATIC MP_DEFINE_CONST_FUN_OBJ_2(esp_connect_obj, esp_connect); +STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(esp_connect_obj, 2, 6, esp_connect); STATIC mp_obj_t esp_disconnect() { error_check(wifi_station_disconnect(), "Cannot disconnect from AP");