Skip to content

Commit 02a3de2

Browse files
fix #492
1 parent 1ba73ff commit 02a3de2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ce/include/sys/rtc.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ void boot_GetDate(uint8_t *day, uint8_t *month, uint16_t *year);
4242
/**
4343
* Sets the calculator's time
4444
*
45-
* Performs checks to ensure time is within range
45+
* Performs checks to ensure time is within range.
46+
* @warning This function doesn't wait until the previous full RTC load
47+
* operation is completed before attempting to start a new one.
48+
* This may lead to issues, for example if you call boot_SetDate()
49+
* before this function.
50+
* To mitigate this, use boot_SetDate() (which doesn't have this bug),
51+
* after boot_SetTime() or validate rtc_IsBusy() is false before
52+
* calling boot_SetTime().
4653
* @param[in] seconds Seconds to set
4754
* @param[in] minutes Minutes to set
4855
* @param[in] hours Hours to set

0 commit comments

Comments
 (0)