Browse Source

open files with 'rb' instead of 'rt'

* closes #23
Peter Magnusson 8 years ago
parent
commit
1bdac34d1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nodemcu-uploader.py

+ 1 - 1
nodemcu-uploader.py

@@ -179,7 +179,7 @@ class Uploader:
             log.error('did not ack destination filename')
             return
 
-        f = open( path, 'rt' ); content = f.read(); f.close()
+        f = open( path, 'rb' ); content = f.read(); f.close()
         log.debug('sending %d bytes in %s' % (len(content), filename))
         pos = 0
         chunk_size = 128