   }
 }
 
-void irSendTvbypir()
+void irSendTvbypir(int onoff)
 {
   if ( tvPowerStatus == 1 ) {
     switch (onoff) {

        if ( tvPowerStatus == 1 ) {
          t.stop(tvIsOffEvent);
          t.stop(tvIsOnEvent);
        } else {
          tvOnTimer();
          temp_Mills = millis();
        }

}


void irSendTvbytimer(int onoff)
{
  switch (onoff) {
    case 1:
