Skip to content

Commit

Permalink
Set RTC seconds to 0 when changing the time
Browse files Browse the repository at this point in the history
  • Loading branch information
tomikaa87 committed Dec 17, 2022
1 parent cbcaf0a commit b7d0fcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Software/LEDTimer.X/Clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ void Clock_setMinutesSinceMidnight(const uint16_t value)
{
TMR1_WriteTimer(0);
Clock_interruptContext.minutesSinceMidnight = value;
Clock_interruptContext.seconds = 0;
}

inline Clock_Ticks Clock_getTicks()
Expand Down
2 changes: 1 addition & 1 deletion Software/LEDTimer.X/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
* General
*/
#define Config_FirmwareVersion "1.0.2"
#define Config_FirmwareVersion "1.0.3"

/**
* Settings
Expand Down

0 comments on commit b7d0fcd

Please sign in to comment.