RX-8025NB Real Time Clock Module by EPSON
Dependents: TYBLE16_simple_data_logger Check_external_RTC
Revision 8:c8aebe7e802d, committed 2020-08-07
- Comitter:
- kenjiArai
- Date:
- Fri Aug 07 06:21:58 2020 +0000
- Parent:
- 7:4793c4817590
- Commit message:
- deleted unused line
Changed in this revision
RX8025NB.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/RX8025NB.cpp Fri Aug 07 05:38:04 2020 +0000 +++ b/RX8025NB.cpp Fri Aug 07 06:21:58 2020 +0000 @@ -118,13 +118,11 @@ tm t; int8_t dt; uint8_t m, h; - uint16_t set; dt = read_reg_byte(RX8025_REG_CONTL1); dt &= ~0x40; // DALE = 0 dt = write_reg_byte(RX8025_REG_CONTL1, dt); read_rtc_std(&t); // read current time - set = time + t.tm_hour * 60 + t.tm_min; m = t.tm_min + (uint8_t)(time % 60); h = t.tm_hour; if (m >= 60) {