   selectKey.attachLongPressStart(selectLongPress);
   startKey.attachLongPressStart(startLongPress);
 
-  SPI.setFrequency(4500000);
+
+
   delay(1000); //delay 3s for Sensor stability
 
   digitalWrite(LED1, HIGH);

#define DHTPIN 0    // what digital pin we're connected to
#define DHTTYPE DHT11   // DHT 11

// Http update host



// #define MAX6675_CS_PIN 2
#define MAX31855_CS_PIN     2


// the struct much be 4, 8,  12.... byte for file writting.
//struct logger_struct {

    count--;
  }

  rtc.begin();
  rtc.writeSqwPinMode(ON);

  if (! rtc.isrunning()) {
    Serial.println("RTC is NOT running!");
    // following line sets the RTC to the date & time this sketch was compiled
    rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
    // This line sets the RTC with an explicit date & time, for example to set
    // January 21, 2014 at 3am you would call:
    // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));


    startTime  = getNtpTime() - millis() / 1000;


  } else {
    startTime = rtc.now().unixtime() - millis() / 1000;
  }





  //  DBG_OUTPUT_PORT.println("");
  //  DBG_OUTPUT_PORT.print("Connected! IP address: ");
