           irsend.sendNEC(tv_left, 32);
           delay(300);
         }
-        irsend.sendNEC(tv_enter, 32);      
+        irsend.sendNEC(tv_enter, 32);
         break;
       case 1:
         irsend.sendNEC(tv_input, 32);

    tvOnTimer();
    lcd.setCursor(15, 0);
    lcd.print(" ");
  } 
}

// 
void doTvControlbyPir(int onoff)
{
   if ( o_wrkMode == 1 && o_startMode == 1 ) {
      switch (onoff) {
        case 1:
          lcd.setCursor(15, 0);
          lcd.print(" ");
          irSendTvbypir(1);
          break;
        case 0:
          lcd.setCursor(15, 0);
          lcd.write(6);
          irSendTvbypir(0);
          break;
      }
  }
  r = !r;
}

      case 0xFF9867: // remote off
        if ( timerStatus == 1 ) {
          t.stop(tvIsOffEvent);
          t.stop(tvIsOnEvent);
        } else {
          tvOnTimer();
          temp_Mills = millis();
        }
        timerStatus = ! timerStatus;
