-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Milestone
Description
In RTC_StartAlarm function
Line 801 in 90414bc
void RTC_StartAlarm(alarm_t name, uint8_t day, uint8_t hours, uint8_t minutes, uint8_t seconds, uint32_t subSeconds, hourAM_PM_t period, uint8_t mask) |
If for example user wants to send 14:00h time in 12h format he will send:
RTC_StartAlarm(RTC_ALARM_B, 0, 2, 0, 0, 0, HOUR_PM, 31UL); // old
If 24h format is hardcoded alarm will be set at 2:00 AM and user will not have feedback.
From UX side it would be the best to add additional value to hourAM_PM_t enum:
Line 67 in 90414bc
} hourAM_PM_t; |
typedef enum {
HOUR_AM,
HOUR_PM,
HOUR_24H
} hourAM_PM_t;
Modifiying code wherever new hourAM_PM_t is used, will enable user to dinamically set hour format he wants.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done