The Planted Tank Forum - View Single Post - Guide: Arduino based LED controller for Current Satellite LED+
View Single Post
Old 08-30-2013, 10:19 PM   #340
mistergreen
No more Bow ties
 
mistergreen's Avatar
 
PTrader: (13/100%)
Join Date: Dec 2006
Location: Cincinnati
Posts: 13,991
Default

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   Reply With Quote