mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 13:52:15 +00:00
check platform is macos before delaying nrf52 reset
This commit is contained in:
1 parent
df92fb1bcf
commit
c4705fd594
1 file changed
+2
-1
@@ -3442,7 +3442,8 @@ def main():
|
||||
elif rnode.platform == ROM.PLATFORM_NRF52:
|
||||
# Wait a few seconds before hard resetting.
|
||||
# Otherwise, macOS fails to set firmware hash on NRF52
|
||||
time.sleep(5)
|
||||
if RNS.vendor.platformutils.is_darwin():
|
||||
time.sleep(5)
|
||||
|
||||
rnode.hard_reset()
|
||||
# The hard reset on this platform is different
|
||||
|
||||
Reference in new issue
Block a user