BobbyMi / ds1307new

Automatically exported from code.google.com/p/ds1307new
0 stars 0 forks source link

Arduino DS1307new_v1.23, bug in monitor #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

there is an error in DS1307_Monitor.pde.
In function "uint8_t mon_get_date_time(void)" the call to function 
mon_get_value() is commented out. But the function has to be executed in order 
to get the time/date-separators and to be able to set date/time.

Wrong:
  ...
  for(;;)
  {
    mon_ptr = mon_curr;
    mon_skip_space();
    //v = mon_get_value();
    if ( mon_check(':') != 0 )
    ...

Correct:
  ...
  for(;;)
  {
    mon_ptr = mon_curr;
    mon_skip_space();
    mon_get_value();
    if ( mon_check(':') != 0 )
    ...

Original issue reported on code.google.com by olikr...@gmail.com on 6 Jul 2013 at 6:36