Subject: | support AUTO for mod in scan_from_file |
I have following frequencies file:
T 754000000 8MHz 2/3 NONE AUTO 8k 1/8 NONE
T 642000000 8MHz 2/3 NONE AUTO 8k 1/8 NONE
T 690000000 8MHz 2/3 NONE AUTO 8k 1/8 NONE
Attached patch fixes problem since $mo isn't used anyway
Subject: | Linux-DVB-DVBT-scan_from_file.diff |
diff --git a/lib/Linux/DVB/DVBT.pm b/lib/Linux/DVB/DVBT.pm
index 96541ea..d241a27 100644
--- a/lib/Linux/DVB/DVBT.pm
+++ b/lib/Linux/DVB/DVBT.pm
@@ -1084,7 +1084,7 @@ sub scan_from_file
while (defined($line=<$fh>))
{
chomp $line ;
- if ($line =~ m%^\s*T\s+(\d+)\s+(\d+)MHz\s+(\d+)/(\d+)\s+(\w+)\s+QAM(\d+)\s+(\d+)k\s+(\d+)/(\d+)\s+(\w+)%i)
+ if ($line =~ m%^\s*T\s+(\d+)\s+(\d+)MHz\s+(\d+)/(\d+)\s+(\w+)\s+(\w+)\s+(\d+)k\s+(\d+)/(\d+)\s+(\w+)%i)
{
# get first
my ($freq, $bw, $r_hi1, $r_hi2, $r_lo1, $r_lo2, $mo, $tr, $gu, $hi) = ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ;