Skip to content

Commit 38d3a2a

Browse files
committed
Update RTC.cpp
1 parent 670d7fb commit 38d3a2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libraries/RTC/src/RTC.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ APM3_RTC::APM3_RTC()
5151
am_hal_rtc_osc_enable();
5252
}
5353

54-
void APM3_RTC::setTime(uint8_t hund, uint8_t sec, uint8_t min, uint8_t hour, uint8_t dayOfMonth, uint8_t month, uint16_t year)
55-
{
54+
55+
// Note: Order of parameters to change in v2.0.0.
56+
void APM3_RTC::setTime(uint8_t hour, uint8_t min, uint8_t sec, uint8_t hund, uint8_t dayOfMonth, uint8_t month, uint16_t year)
57+
5658
hal_time.ui32Weekday = am_util_time_computeDayofWeek(2000 + year, month, dayOfMonth); //computeDayofWeek is expecting 1 to 12 months
5759
hal_time.ui32Century = 0;
5860
hal_time.ui32Year = year;

0 commit comments

Comments
 (0)