Mercurial > ~darius > hgwebdir.cgi > avr
diff ds1307.c @ 65:1ef17cd8af7a
Tab to space conversion in usage text.
author | darius@Inchoate |
---|---|
date | Sun, 18 Jan 2009 20:03:24 +1030 |
parents | 0910ab6f0095 |
children |
line wrap: on
line diff
--- a/ds1307.c Sun Jan 18 18:04:01 2009 +1030 +++ b/ds1307.c Sun Jan 18 20:03:24 2009 +1030 @@ -225,10 +225,12 @@ case TW_MR_DATA_NACK: /* Send STOP */ TWCR = _BV(TWINT) | _BV(TWSTO) | _BV(TWEN); + //printf_P(PSTR("NACK on byte %d\r\n"), cnt); return cnt; case TW_MR_DATA_ACK: *data++ = TWDR; + //printf_P(PSTR("ACK on byte %d for 0x%02x\r\n"), cnt, *(data - 1)); cnt++; break; @@ -479,7 +481,7 @@ } else hour += (rtime.split.pmam << 1) * 10; - printf_P(PSTR("%S%04d/%02d/%d %02d:%02d:%02d%S"), leader, + printf_P(PSTR("%S%04d/%02d/%02d %02d:%02d:%02d%S"), leader, 1900 + rtime.split.year10 * 10 + rtime.split.year, rtime.split.month10 * 10 + rtime.split.month, rtime.split.day10 * 10 + rtime.split.day,