Skip to content
Snippets Groups Projects
Commit 86ed67e9 authored by Mikhail Remnev's avatar Mikhail Remnev
Browse files

Better loshc error detection

parent 63b7e286
No related branches found
No related tags found
No related merge requests found
......@@ -42,12 +42,11 @@ if ((ETHERNET_MODE)); then
mask=$((1 << i))
mask=$(printf "%03X" $mask)
$FILEX ${IP} $mask ${MEM_ECLDSP_ADDR[$i]} \
| grep -vE "Initializing|DONE"
# output=$( $FILEX ${IP} $mask ${MEM_ECLDSP_ADDR[$i]} )
# if echo "$output" | grep -q "DONE"; then
#
# fi
output=$( $FILEX ${IP} $mask ${MEM_ECLDSP_ADDR[$i]} | tee >(grep -vE "Initializing|DONE") )
if echo "$output" | grep -q "Fault"; then
echo "ERROR: Could not upload DSP coefficients to ShaperDSP"
return 1
fi
sleep 0.1
done
......@@ -114,7 +113,7 @@ else
else
foreach_fin "$FOREACH_MASK_FIN" "loshc_func"
fi
# ssh ecldaq@eclpc11 bash <<__EOF
# ssh b2ecl@eclpc11 bash <<__EOF
# loshc-dsp-tot
# __EOF
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment