Skip to content

Commit 9c44317

Browse files
authored
Merge pull request #844 from adafruit/patch-fj-c6
[Fix] Implement version check for FruitJam C6
2 parents aefd2a0 + f639a73 commit 9c44317

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit WipperSnapper
2-
version=1.0.0-beta.120
2+
version=1.0.0-beta.121
33
author=Adafruit
44
maintainer=Adafruit <adafruitio@adafruit.com>
55
sentence=Arduino application for Adafruit.io WipperSnapper

src/Wippersnapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
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

src/network_interfaces/Wippersnapper_AIRLIFT.h

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@
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 ");

0 commit comments

Comments
 (0)