 
   //  RTCが初期化されていないならWifiに接続してsntpで時刻を取得
   rtc.setup(0x20);
-  if (rtc.isPowerOn()) {
+  if (rtc.isPowerOn() || storage.uni.datas.nextAdjust == 0) {
     Serial.println("RTC is not initilized");
     startWifi();
-    time_t forRTC = getTimestamp();
-    rtc.writeRTC(&forRTC);
-    Serial.println(forRTC);
+    adjustRTCwithSNTP();
   } else {
     Serial.println("RTC is already initalized");
   }

    one["created"] = bufCreated[i];
    one["d1"] = pSrc->temperature;
    one["d2"] = pSrc->humidity;
    one["d3"] = pSrc->pressure;
    one["d4"] = pSrc->airQuality;
    dataArray.add(one);
  }

//  Storageを読み込む。もしCRCが不一致なら初期化
//
bool readStorageAndInitIfNeeded() {
  Serial.print("storage size = ");
  Serial.println(sizeof(storage));
  bool ok = system_rtc_mem_read(kOffset_CRC, &storage, sizeof(storage));
  if (!ok) {
    Serial.println("readStorageAndInitIfNeeded : mem_read fail");
