Skip to content

Commit de23686

Browse files
Merge pull request #333 from stevstrong/patch-2
Update RTClock.cpp [F4]
2 parents b4aa24e + e6ed2d5 commit de23686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STM32F4/libraries/RTClock/src/RTClock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void RTClock::setAlarmATime (tm_t * tm_ptr, bool hours_match, bool mins_match, b
281281
{
282282
uint32 t = 0;
283283
rtc_enter_config_mode();
284-
unsigned int bits = ((tm_ptr->day / 10) << 28) | ((tm.day % 10) << 24) |
284+
unsigned int bits = ((tm_ptr->day / 10) << 28) | ((tm_ptr->day % 10) << 24) |
285285
((tm_ptr->hour / 10) << 20) | ((tm_ptr->hour % 10) << 16) |
286286
((tm_ptr->minute / 10) << 12) | ((tm_ptr->minute % 10) << 8) |
287287
((tm_ptr->second / 10) << 4) | (tm_ptr->second % 10);

0 commit comments

Comments
 (0)