Skip to content

Commit 6180bff

Browse files
committed
fix for rp2040 crashes when getting board UHWID
1 parent ea12f58 commit 6180bff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/utility/Provisioning_2.0/SecretsHelper.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
inline String GetUHWID() {
1515
UniqueHWId Id;
1616
if (Id.begin()) {
17+
#ifdef ARDUINO_NANO_RP2040_CONNECT
18+
/*Delay added for avoiding device crashes
19+
on Nano RP2040 Connect when reading the UHWID */
20+
delay(100);
21+
#endif
1722
return Id.get();
1823
}
1924
return "";

0 commit comments

Comments
 (0)