Browse Source

Increased format timeout

* increased timeout to 5 minutes
* a better, more general, message about how long time it may
  take to format the filesystem

Closes #56
kmpm 7 years ago
parent
commit
fd196c59a5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      nodemcu_uploader/uploader.py

+ 2 - 2
nodemcu_uploader/uploader.py

@@ -421,8 +421,8 @@ class Uploader(object):
 
     def file_format(self):
         """Formats device filesystem"""
-        log.info('Formating, can take up to 1 minute...')
-        res = self.__exchange('file.format()', timeout=60)
+        log.info('Formating, can take minutes depending on flash size...')
+        res = self.__exchange('file.format()', timeout=300)
         if 'format done' not in res:
             log.error(res)
         else: