bugfix, reliability

This commit is contained in:
Peter D. Gray 2024-02-14 10:47:24 -05:00
parent 0cb05ed5d6
commit c5f52f352a
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -209,7 +209,10 @@ class GPUAccess:
def get_version(self):
# see if running, and what version
try:
resp = self.cmd_resp(b'v', 20)
for retry in range(3):
resp = self.cmd_resp(b'v', 20)
if resp[0] != 0xff: break # bugfix for intermittent issue
utime.sleep_ms(10)
except OSError:
try:
# check bootloader is running