X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fshavs_test.rb;h=3d6ea06fc73075c709362447544ebfd99d833ff5;hb=7f4bda01ca923c4a9aca6da3370a7c4793426a5c;hp=8405a3f9a70fdde74345155fc5b6463f744a1291;hpb=4e31ebdb0529eeb61efd3fe181b9de1abe6d7f6c;p=avr-crypto-lib.git diff --git a/host/shavs_test.rb b/host/shavs_test.rb index 8405a3f..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.01) + 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)))