Files
agent/usb/print-i2c-hangs.sh
2017-08-07 02:46:10 +02:00

12 lines
241 B
Bash
Executable File

#!/bin/bash
while true; do
startSeconds=`date +%s`
./wait-until-i2c-dies.js
endSeconds=`date +%s`
elapsedSeconds=$((startSeconds-endSeconds))
echo $elapsedSeconds
./jump-to-bootloader.js > /dev/null
sleep 6
done