RX-8025NB Real Time Clock Module by EPSON
Dependents: TYBLE16_simple_data_logger Check_external_RTC
Diff: RX8025NB.cpp
- Revision:
- 8:c8aebe7e802d
- Parent:
- 7:4793c4817590
diff -r 4793c4817590 -r c8aebe7e802d RX8025NB.cpp --- 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) {