The Planted Tank Forum - View Single Post - Guide: Arduino based LED controller for Current Satellite LED+
View Single Post
post #340 of (permalink) Old 08-30-2013, 10:19 PM
mistergreen
Children Boogie
 
mistergreen's Avatar
 
Join Date: Dec 2006
Location: Cincinnati
Posts: 16,044
debug time.. see if the sync function gets called besides the first time.
Code:
time_t syncProvider()
{
  //
  Serial.println("arduino:");
  Serial.print(hour());
  Serial.print(":");
  Serial.print(minute());
  //

 //
  Serial.println("RTC:");
  Serial.print(RTC.hour());
  Serial.print(":");
  Serial.print(RTC.minute());
  //

  //this does the same thing as RTC_DS1307::get()
  return RTC.now().unixtime();
}

mistergreen is offline  
 
 
For the best viewing experience please update your browser to Google Chrome