X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fshavs_test.rb;h=3d6ea06fc73075c709362447544ebfd99d833ff5;hb=951a88cde69f595ef2c00ed941e89ccf1567e3a0;hp=99553ff47bb3e49047188b58b6a5c6a0c83bb6bd;hpb=dbbf324199b1aa27be910e00e1aad5e991d70e98;p=avr-crypto-lib.git diff --git a/host/shavs_test.rb b/host/shavs_test.rb index 99553ff..3d6ea06 100644 --- a/host/shavs_test.rb +++ b/host/shavs_test.rb @@ -2,7 +2,7 @@ # shavs_test.rb =begin This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,8 @@ along with this program. If not, see . =end -$debug = false +$debug = true; +$debug = false; require 'rubygems' require 'serialport' @@ -57,7 +58,7 @@ def send_md(md_string) $sp.print(md_string[i].chr) # print("DBG s: "+ md_string[i].chr) if $debug if(i%20==19) - sleep(0.015) + sleep(0.1) end end end @@ -71,6 +72,7 @@ def run_test(filename) pos = 0 file = File.new(filename, "r"); until file.eof + sleep(0.5) begin lb=file.gets() end while not (file.eof or (/[\s]*Len[\s]*=.*/.match(lb)))