|
@@ -30,4 +30,5 @@ function recv_name(d) d = string.gsub(d, '\000', '') file.remove(d) file.open(d,
|
|
function recv() uart.setup(0,{baud},8,0,1,0) uart.on('data', '\000', recv_name, 0) uart.write(0, 'C') end
|
|
function recv() uart.setup(0,{baud},8,0,1,0) uart.on('data', '\000', recv_name, 0) uart.write(0, 'C') end
|
|
function shafile(f) file.open(f, "r") print(crypto.toHex(crypto.hash("sha1",file.read()))) file.close() end
|
|
function shafile(f) file.open(f, "r") print(crypto.toHex(crypto.hash("sha1",file.read()))) file.close() end
|
|
UART_SETUP = 'uart.setup(0,{baud},8,0,1,1)'
|
|
UART_SETUP = 'uart.setup(0,{baud},8,0,1,1)'
|