Skip to content

Commit

Permalink
fix #492
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Oct 6, 2024
1 parent 1ba73ff commit 02a3de2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ce/include/sys/rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ void boot_GetDate(uint8_t *day, uint8_t *month, uint16_t *year);
/**
* Sets the calculator's time
*
* Performs checks to ensure time is within range
* Performs checks to ensure time is within range.
* @warning This function doesn't wait until the previous full RTC load
* operation is completed before attempting to start a new one.
* This may lead to issues, for example if you call boot_SetDate()
* before this function.
* To mitigate this, use boot_SetDate() (which doesn't have this bug),
* after boot_SetTime() or validate rtc_IsBusy() is false before
* calling boot_SetTime().
* @param[in] seconds Seconds to set
* @param[in] minutes Minutes to set
* @param[in] hours Hours to set
Expand Down

0 comments on commit 02a3de2

Please sign in to comment.