   lcd.setCursor(0, 1);
   lcd.print("power source");
   lcd.setCursor(15, 1);
-  lcd.print("*");  
-
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
+  lcd.print("*");
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
 
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("ON : from TV");
   lcd.setCursor(0, 1);
-  lcd.print("OFF: from other");    
+  lcd.print("OFF: from other");
 
   boolean pwrSrc = initialise_boolean_select();
 
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Select");
-  lcd.setCursor(0, 1);  
+  lcd.setCursor(0, 1);
   lcd.print("working mode");
   lcd.setCursor(15, 1);
-  lcd.print("*");  
-
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-  lcd.clear(); 
+  lcd.print("*");
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("ON : TV + thermo");
   lcd.setCursor(0, 1);
-  lcd.print("OFF: thermo");  
+  lcd.print("OFF: thermo");
 
   boolean wrkMode = initialise_boolean_select();
 
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Select");
-  lcd.setCursor(0, 1);  
+  lcd.setCursor(0, 1);
   lcd.print("start mode");
   lcd.setCursor(15, 1);
-  lcd.print("*");  
-
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-  lcd.clear(); 
+  lcd.print("*");
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("ON : Auto start");
   lcd.setCursor(0, 1);
-  lcd.print("OFF: do nothing");  
-
-  boolean startMode = initialise_boolean_select(); 
+  lcd.print("OFF: do nothing");
+
+  boolean startMode = initialise_boolean_select();
 
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Select");
-  lcd.setCursor(0, 1);  
+  lcd.setCursor(0, 1);
   lcd.print("beep mode");
-   lcd.setCursor(15, 1);
-  lcd.print("*"); 
-
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-  lcd.clear(); 
+  lcd.setCursor(15, 1);
+  lcd.print("*");
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("ON : beep on");
   lcd.setCursor(0, 1);
-  lcd.print("OFF: beep off");  
+  lcd.print("OFF: beep off");
 
   boolean beepMode = initialise_boolean_select();
 
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Select");
-  lcd.setCursor(0, 1);  
+  lcd.setCursor(0, 1);
   lcd.print("TV off mode");
   lcd.setCursor(15, 1);
   lcd.print("*");
-  
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-  lcd.clear(); 
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("ON : TV on/off");
   lcd.setCursor(0, 1);
-  lcd.print("OFF: IN change");  
-
-  boolean offMode = initialise_boolean_select();  
+  lcd.print("OFF: IN change");
+
+  boolean offMode = initialise_boolean_select();
 
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Select");
-  lcd.setCursor(0, 1);  
+  lcd.setCursor(0, 1);
   lcd.print("channel gap");
   lcd.setCursor(15, 1);
   lcd.print("*");
-  
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-  lcd.clear(); 
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("ON : change no");
   lcd.setCursor(0, 1);
-  lcd.print("OFF: done");  
-
-  int channelGap = initialise_number_select(1, 5, 1, 1);  
+  lcd.print("OFF: done");
+
+  int channelGap = initialise_number_select(1, 5, 1, 1);
 
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Select timer");
-  lcd.setCursor(0, 1);  
+  lcd.setCursor(0, 1);
   lcd.print("for TV auto off");
-   lcd.setCursor(15, 1);
-  lcd.print("*"); 
-
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-  lcd.clear(); 
+  lcd.setCursor(15, 1);
+  lcd.print("*");
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("ON : change no");
   lcd.setCursor(0, 1);
-  lcd.print("OFF: done");  
-
-  int tvOnTime = initialise_number_select(30, 90, 50, 5);  
+  lcd.print("OFF: done");
+
+  int tvOnTime = initialise_number_select(30, 90, 50, 5);
 
   lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Select timer");
-  lcd.setCursor(0, 1);  
+  lcd.setCursor(0, 1);
   lcd.print("for TV auto on");
-   lcd.setCursor(15, 1);
-  lcd.print("*"); 
-
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-  lcd.clear(); 
+  lcd.setCursor(15, 1);
+  lcd.print("*");
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("ON : change no");
   lcd.setCursor(0, 1);
-  lcd.print("OFF: done");  
-
-  int tvOffTime = initialise_number_select(5, 20, 10, 5);  
+  lcd.print("OFF: done");
+
+  int tvOffTime = initialise_number_select(5, 20, 10, 5);
 
   //
   boolean initialise_eeprom_done =  initialise_eeprom(pwrSrc, wrkMode, startMode, beepMode, offMode, channelGap, tvOnTime, tvOffTime) ;
 
-  while(initialise_eeprom_done != 1 ) { } 
-
-  lcd.clear(); 
+  while (initialise_eeprom_done != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Setup is done");
   lcd.setCursor(0, 1);
   if ( setUpStatus == 0 ) {
-      lcd.print("change setup sw");
-  }
-  lcd.setCursor(15, 1);
-  lcd.print("*");
-
-  irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-  lcd.clear(); 
+    lcd.print("change setup sw");
+  }
+  lcd.setCursor(15, 1);
+  lcd.print("*");
+
+  irrecv.resume();
+  while (irrecv.decode(&results) != 1 ) { }
+
+  lcd.clear();
   lcd.setCursor(0, 0);
   lcd.print("Press any button");
   lcd.setCursor(0, 1);
   lcd.print("to reset");
 
   irrecv.resume();
-  while(irrecv.decode(&results) != 1 ) { } 
-
-}
-
-
-boolean initialise_eeprom(boolean i_pwrSrc, boolean i_wrkMode, boolean i_startMode, boolean i_beepMode, boolean i_offMode, int i_channelGap, int i_tvOnTime, int i_tvOffTime) 
+  while (irrecv.decode(&results) != 1 ) { }
+
+}
+
+
+boolean initialise_eeprom(boolean i_pwrSrc, boolean i_wrkMode, boolean i_startMode, boolean i_beepMode, boolean i_offMode, int i_channelGap, int i_tvOnTime, int i_tvOffTime)
 {
   eeprom_write(i_pwrSrc, pwrSrc);
   eeprom_write(i_wrkMode, wrkMode);

  lcd.setCursor(1, 0);
  displayTemperaturedigit(tempCinside);

  if ( !isnan(o_tempCinside) ) {
     float tempdiff = o_tempCinside - tempCinside;

    lcd.setCursor(8, 0);
    if ( tempdiff > 0 ) {
      lcd.print("+");
    } else if ( tempdiff < 0 ) {
      lcd.print("-");
    }


  return 1;
}

/*
*
*/
