Commit 99babf85 authored by Marek Gumiński's avatar Marek Gumiński Committed by Jacek Kołodziejski

spec_identification.py script did not accept two-digit bit numbers

Signed-off-by: Jacek Kołodziejski's avatarJacek Kołodziejski <jacek.kolodziejski@creotech.pl>
parent 03eeb819
...@@ -7,14 +7,14 @@ def spec_identification(): ...@@ -7,14 +7,14 @@ def spec_identification():
if int( dutnr ) == 1: if int( dutnr ) == 1:
dutbus_string=commands.getoutput("ls /sys/bus/fmc/devices/ | grep -iv adc | grep -v 100. | grep -e '.*-[0-9][0-9][0-9][0-9]$' | sed 's/.*-//'") dutbus_string=commands.getoutput("ls /sys/bus/fmc/devices/ | grep -iv adc | grep -v 100. | grep -e '.*-[0-9][0-9][0-9][0-9]$' | sed 's/.*-//'")
dutbus = int(dutbus_string[1:2],16) dutbus = int(dutbus_string[0:2],16)
else: else:
dutbus = -1; dutbus = -1;
adcnr=commands.getoutput("ls /sys/bus/fmc/devices/ | grep -i adc | grep 100. | grep -e '.*-[0-9][0-9][0-9][0-9]$' | wc -w") adcnr=commands.getoutput("ls /sys/bus/fmc/devices/ | grep -i adc | grep 100. | grep -e '.*-[0-9][0-9][0-9][0-9]$' | wc -w")
if int( adcnr ) == 1: if int( adcnr ) == 1:
adcbus_string=commands.getoutput("ls /sys/bus/fmc/devices/ | grep -i adc | grep 100. | grep -e '.*-[0-9][0-9][0-9][0-9]$' | sed 's/.*-//'") adcbus_string=commands.getoutput("ls /sys/bus/fmc/devices/ | grep -i adc | grep 100. | grep -e '.*-[0-9][0-9][0-9][0-9]$' | sed 's/.*-//'")
adcbus = int(adcbus_string[1:2],16) adcbus = int(adcbus_string[0:2],16)
else: else:
adcbus = -1; adcbus = -1;
......
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