Skip to content

Commit 5c3030b

Browse files
author
brentru
committed
patch aws iot code
1 parent 6d5badc commit 5c3030b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PyPortal_AWS_IOT_Planter/code.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858

5959
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
6060
esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset)
61+
62+
# Verify nina-fw version >= 1.4.0
63+
assert int(bytes(esp.firmware_version).decode("utf-8")[2]) >= 4, "Please update nina-fw to >=1.4.0."
64+
6165
status_light = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.2)
6266
wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(
6367
esp, secrets, status_light)

0 commit comments

Comments
 (0)