From: Andreas Oberritter Date: Tue, 17 Jan 2006 23:00:12 +0000 (+0000) Subject: always initialize diseqc.data to make compiler happy X-Git-Tag: 2.6.0~4400 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/661a3e90b05b18185639d43ff30b9ae3532561c4?hp=4074e687a61dd3de7bcb7319f023fd08af402cf3;ds=sidebyside always initialize diseqc.data to make compiler happy --- diff --git a/lib/dvb/sec.cpp b/lib/dvb/sec.cpp index 0c1d79ab..9b4ee15a 100644 --- a/lib/dvb/sec.cpp +++ b/lib/dvb/sec.cpp @@ -427,6 +427,11 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA diseqc.data[2] = 0x38; diseqc.data[3] = csw; } + else + { + diseqc.data[2] = 0x00; + diseqc.data[3] = 0x00; + } sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) ); i++; @@ -557,6 +562,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA diseqc.len = 4; diseqc.data[2] = 0x6B; // goto stored sat position diseqc.data[3] = RotorCmd; + diseqc.data[4] = 0x00; } if ( rotor_param.m_inputpower_parameters.m_use )