fix sending of uncommitted command when no committed command is choosed and the comma...
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 12 Apr 2006 21:04:29 +0000 (21:04 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 12 Apr 2006 21:04:29 +0000 (21:04 +0000)
lib/dvb/sec.cpp

index 732946111cbf305b0fdb484675ddd7cce4ecf904..464a845ab5af06978128eb6f86e4522a1075b5b2 100644 (file)
@@ -504,7 +504,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
                                                        ++loops;
 
                                                for ( int i=0; i < di_param.m_repeats; ++i )
-                                               loops *= 2;
+                                                       loops *= 2;
 
                                                for ( int i = 0; i < loops;)  // fill commands...
                                                {
@@ -522,10 +522,10 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
                                                                diseqc.data[2] = 0x38;
                                                                diseqc.data[3] = csw;
                                                        }
-                                                       else
+                                                       else  // no committed command confed.. so send uncommitted..
                                                        {
-                                                               diseqc.data[2] = 0x00;
-                                                               diseqc.data[3] = 0x00;
+                                                               diseqc.data[2] = 0x39;
+                                                               diseqc.data[3] = ucsw;
                                                        }
                                                        sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) );