File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 11name =Adafruit WipperSnapper
2- version =1.0.0-beta.120
2+ version =1.0.0-beta.121
33author =Adafruit
44maintainer =Adafruit <adafruitio@adafruit.com>
55sentence =Arduino application for Adafruit.io WipperSnapper
Original file line number Diff line number Diff line change 139139#endif
140140
141141#define WS_VERSION \
142- " 1.0.0-beta.120 " // /< WipperSnapper app. version (semver-formatted)
142+ " 1.0.0-beta.121 " // /< WipperSnapper app. version (semver-formatted)
143143
144144// Reserved Adafruit IO MQTT topics
145145#define TOPIC_IO_THROTTLE " /throttle" // /< Adafruit IO Throttle MQTT Topic
Original file line number Diff line number Diff line change 2727#include " WiFiNINA.h"
2828#include " Wippersnapper.h"
2929
30+ #if defined ARDUINO_ADAFRUIT_FRUITJAM_RP2350
31+ #define NINAFWVER \
32+ " 3.3.0" /* !< Fruit Jam's ESP32-C6 requires nina-fw version 3.3.0+ to work \
33+ with this library. */
34+ #else
3035#define NINAFWVER \
3136 " 1.7.7" /* !< min. nina-fw version compatible with this library. */
37+ #endif
3238#define AIRLIFT_CONNECT_TIMEOUT_MS 20000 /* !< Connection timeout (in ms) */
3339#define AIRLIFT_CONNECT_RETRY_DELAY_MS 200 /* !< delay time between retries. */
3440
@@ -337,11 +343,14 @@ class Wippersnapper_AIRLIFT : public Wippersnapper {
337343 WS_PRINTER.flush ();
338344 feedWDT ();
339345
340- // validate co-processor's firmware version
346+ // Validate nina-fw version
341347 if (!firmwareCheck ()) {
342348 // TODO: see if there's a way to add to bootlog without usb reattach
343- WS_DEBUG_PRINTLN (" Please upgrade the firmware on the ESP module to the "
344- " latest version." );
349+ WS_DEBUG_PRINTLN (" ERROR: Incompatible nina-fw version!" );
350+ WS_DEBUG_PRINT (" Required nina-fw version: " );
351+ WS_DEBUG_PRINTLN (NINAFWVER);
352+ WS_PRINTER.flush ();
353+ return ;
345354 }
346355
347356 WS_DEBUG_PRINT (" Connecting to " );
You can’t perform that action at this time.
0 commit comments