     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;
-      }
+  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;
 }

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

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