Make sure RTC is counting time on battery #51
| @ -279,8 +279,11 @@ void setup() { | |||||||
|     //rtc.adjust(DateTime(2023, 9, 2, 17, 32, 0)); |     //rtc.adjust(DateTime(2023, 9, 2, 17, 32, 0)); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   // Report the RTC time |   // Report the RTC time after waiting two seconds | ||||||
|   Serial.print("RTC time on startup: "); |   // https://amiok.net/gitea/W1CDN/vulpes/issues/50#issuecomment-1376 | ||||||
|  |   Serial.println("Wait 2s for RTC"); | ||||||
|  |   delay(2000);  | ||||||
|  |   Serial.println("RTC time on startup: "); | ||||||
|   Serial.println(rtc.now().unixtime()); |   Serial.println(rtc.now().unixtime()); | ||||||
|   Serial.println(rtc.now().timestamp()); |   Serial.println(rtc.now().timestamp()); | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user