px_uploader add small delay before checking CRC result

This commit is contained in:
Daniel Agar 2018-07-07 08:43:36 -04:00 committed by Lorenz Meier
parent 8647f0e527
commit dec03873bc
1 changed files with 2 additions and 2 deletions

View File

@ -455,8 +455,8 @@ class uploader(object):
print("\n", end='')
self.__drawProgressBar(label, 1, 100)
expect_crc = fw.crc(self.fw_maxsize)
self.__send(uploader.GET_CRC +
uploader.EOC)
self.__send(uploader.GET_CRC + uploader.EOC)
time.sleep(0.5)
report_crc = self.__recv_int()
self.__getSync()
if report_crc != expect_crc: