Browse Source

Now sha1 verify works in firmware:dev

* related to #40 and #50
Peter Magnusson 8 years ago
parent
commit
37d2868946
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nodemcu_uploader/luacode.py

+ 1 - 1
nodemcu_uploader/luacode.py

@@ -33,7 +33,7 @@ function recv_block(d)
 end
 function recv_name(d) d = d:gsub('%z.*', '') file.remove(d) file.open(d, 'w') uart.on('data', 130, recv_block, 0) uart.write(0, '\006') end
 function recv() uart.on('data', '\000', recv_name, 0) uart.write(0, 'C') end
-function shafile(f) crypto.toHex(crypto.fhash('sha1', f)) end
+function shafile(f) print(crypto.toHex(crypto.fhash('sha1', f))) end
 """
 
 SEND_LUA = \