Better interface "ReadTime" instead of "Time" for DS1307

This commit is contained in:
Daniel Esteban
2020-12-21 16:40:56 +01:00
committed by Ron Evans
parent b6aa674b2a
commit c338348d2b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ func main() {
rtc.SetTime(time.Date(2019, 5, 15, 20, 34, 12, 0, time.UTC))
for {
t, err := rtc.Time()
t, err := rtc.ReadTime()
if err != nil {
println("Error reading date:", err)
break