Ticket #518: mythdiseqcupdate-3.patch
File mythdiseqcupdate-3.patch, 4.0 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/dvbdiseqc.cpp
185 185 186 186 usleep(DISEQC_SHORT_WAIT); 187 187 188 GENERAL(QString("DiSEqC Sending 1.0 Command: %1 %2 %3 %4")188 CHANNEL(QString("DiSEqC Sending 1.0 Command: %1 %2 %3 %4") 189 189 .arg(cmd.msg[0], 2, 16) 190 190 .arg(cmd.msg[1], 2, 16) 191 191 .arg(cmd.msg[2], 2, 16) … … 210 210 211 211 if (tuning.diseqc_type == 7) 212 212 { 213 GENERAL(QString("DiSEqC Sending 1.3 Repeat Command: %1 %2 %3 %4 %5")213 CHANNEL(QString("DiSEqC Sending 1.3 Repeat Command: %1 %2 %3 %4 %5") 214 214 .arg(cmd.msg[0],2,16) 215 215 .arg(cmd.msg[1],2,16) 216 216 .arg(cmd.msg[2],2,16) … … 219 219 } 220 220 else 221 221 { 222 GENERAL(QString("DiSEqC Sending 1.1/1.2 Repeat Command: %1 %2 %3 %4")222 CHANNEL(QString("DiSEqC Sending 1.1/1.2 Repeat Command: %1 %2 %3 %4") 223 223 .arg(cmd.msg[0],2,16) 224 224 .arg(cmd.msg[1],2,16) 225 225 .arg(cmd.msg[2],2,16) … … 273 273 274 274 usleep(DISEQC_SHORT_WAIT); 275 275 276 GENERAL(QString("DiSEqC Sending 1.0 Command: %1 %2 %3 %4")276 CHANNEL(QString("DiSEqC Sending 1.0 Command: %1 %2 %3 %4") 277 277 .arg(cmd.msg[0], 2, 16) 278 278 .arg(cmd.msg[1], 2, 16) 279 279 .arg(cmd.msg[2], 2, 16) … … 290 290 int repeats = repeat; 291 291 while (repeats--) 292 292 { 293 GENERAL(QString("DiSEqC Sending 1.1/1.2/1.3 Repeat Command: %1 %2 %3 %4")293 CHANNEL(QString("DiSEqC Sending 1.1/1.2/1.3 Repeat Command: %1 %2 %3 %4") 294 294 .arg(cmd.msg[0], 2, 16) 295 295 .arg(cmd.msg[1], 2, 16) 296 296 .arg(cmd.msg[2], 2, 16) … … 334 334 } 335 335 } 336 336 337 GENERAL(QString("DiSEqC 1.1 Switch - Port %1").arg(tuning.diseqc_port));337 CHANNEL(QString("DiSEqC 1.1 Switch - Port %1").arg(tuning.diseqc_port)); 338 338 339 339 if ((prev_tuning.diseqc_port != tuning.diseqc_port || 340 340 prev_tuning.tone != tuning.tone || … … 380 380 } 381 381 } 382 382 383 GENERAL(QString("DiSEqC 1.0 Switch - Port %1").arg(tuning.diseqc_port));383 CHANNEL(QString("DiSEqC 1.0 Switch - Port %1").arg(tuning.diseqc_port)); 384 384 385 385 if ((prev_tuning.diseqc_port != tuning.diseqc_port || 386 386 prev_tuning.tone != tuning.tone || … … 495 495 bool DVBDiSEqC::PositionerGoto(DVBTuning& tuning, bool reset, bool& havetuned) 496 496 { 497 497 // A reset seems to be required for my positioner to work consistently 498 GENERAL(QString("DiSEqC 1.2 Motor - Goto Stored Position %1")498 CHANNEL(QString("DiSEqC 1.2 Motor - Goto Stored Position %1") 499 499 .arg(tuning.diseqc_port)); 500 500 501 501 if ((prev_tuning.diseqc_port != tuning.diseqc_port || … … 535 535 return false; 536 536 } 537 537 538 GENERAL(QString("DiSEqC 1.2 Motor - Store Stored Position %1")538 CHANNEL(QString("DiSEqC 1.2 Motor - Store Stored Position %1") 539 539 .arg(tuning.diseqc_port)); 540 540 541 541 dvb_diseqc_master_cmd cmd = … … 649 649 // TODO: Send information here to FE saying motor is moving and 650 650 // to expect a longer than average tuning delay 651 651 if (prev_tuning.diseqc_pos != tuning.diseqc_pos) 652 GENERAL("DiSEqC Motor Moving");652 CHANNEL("DiSEqC Motor Moving"); 653 653 654 654 int CMD1=0x00 , CMD2=0x00; // Bytes sent to motor 655 655 double USALS=0.0; … … 701 701 // and added to tuning 702 702 // sat_pos be passed into tuning, and be a float not an int./ 703 703 704 GENERAL(QString("DiSEqC 1.3 Motor - Goto Angular Position %1").arg(tuning.diseqc_pos));704 CHANNEL(QString("DiSEqC 1.3 Motor - Goto Angular Position %1").arg(tuning.diseqc_pos)); 705 705 706 706 if ((prev_tuning.diseqc_port != tuning.diseqc_port || 707 707 prev_tuning.tone != tuning.tone ||