Merge pull request #509 from liamcottle/master
Fix for macos failing to set firmware hash on NRF52
This commit is contained in:
commit
4fdb9dda40
|
@ -3440,6 +3440,11 @@ def main():
|
||||||
time.sleep(6.5)
|
time.sleep(6.5)
|
||||||
|
|
||||||
elif rnode.platform == ROM.PLATFORM_NRF52:
|
elif rnode.platform == ROM.PLATFORM_NRF52:
|
||||||
|
# Wait a few seconds before hard resetting.
|
||||||
|
# Otherwise, macOS fails to set firmware hash on NRF52
|
||||||
|
if RNS.vendor.platformutils.is_darwin():
|
||||||
|
time.sleep(5)
|
||||||
|
|
||||||
rnode.hard_reset()
|
rnode.hard_reset()
|
||||||
# The hard reset on this platform is different
|
# The hard reset on this platform is different
|
||||||
# to that of the ESP32 platform, it causes
|
# to that of the ESP32 platform, it causes
|
||||||
|
|
Loading…
Reference in New Issue