We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b990d5f commit b41619fCopy full SHA for b41619f
Adafruit_ESP32_Arduino_Demos/ESP32_C6_Firmware_Updater/nina-fw-upgrade-fruitjam.py
@@ -43,7 +43,7 @@
43
# Attempt to sync with the ESP32-C6
44
esptool.sync()
45
chip_name = esptool.chip_name
46
-if (chip_name is None):
+if chip_name is None:
47
pixels.fill((255, 0, 0))
48
time.sleep(3)
49
raise RuntimeError("Unable to detect chip type!")
@@ -60,7 +60,7 @@
60
except (OSError, RuntimeError) as e:
61
62
time.sleep(2)
63
- raise RuntimeError("Flashing failed: " + str(e))
+ raise RuntimeError("Flashing failed: " + str(e)) from e
64
65
print("Done flashing, resetting..")
66
esptool.reset()
@@ -70,4 +70,4 @@
70
pixels.fill((0, 255, 0))
71
time.sleep(0.5)
72
pixels.fill((0, 0, 0))
73
- time.sleep(0.5)
+ time.sleep(0.5)
0 commit comments