Commit a5387ec0 authored by Benoit Rat's avatar Benoit Rat

alpha-pts: LED now stop between color testing

parent 32423ccc
......@@ -24,17 +24,29 @@ printf "======: $0\n"
load-virtex ${APTS_HDL_18P}
load-lm32 ${APTS_FW_RTCPU}
led_pattern="green, orange, yellow, none"
ret0=0
ret1=0
ret2=0
ret3=0
retstr=""
user_echoasking "y/N" "Ready for the led pattern? (${led_pattern})" "ready"
shw_tool --led
user_echoasking "y/N" "Did you see the LEDs pattern (${led_pattern})" "LEDS"
ret0=-$?
if [ $ans == "n" ]; then
read -p "Write the failing LED: " ans
echo "$ans"
fi
led_pattern="green orange yellow none"
exit_multierr $ret0
iled_id=0
for nled in ${led_pattern}; do
shw_tool --led -i ${iled_id}
iled_id=$(($iled_id + 1 ))
user_echoasking "y/N" "Did you see the LEDs in ${nled}" "LEDS_${nled}"
retstr="$retstr -$?"
if [ $ans == "n" ]; then
read -p "Write the failing LED for color : " ans
echo "$ans"
fi
done
exit_multierr $retstr
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment