Skip to content

Commit 8273f3b

Browse files
authored
Merge pull request #4 from fpistm/Singleton
[STM32RTC] use singleton
2 parents 7662425 + e48580d commit 8273f3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/NonReg/RTC/RTC_Tests/RTC_Tests.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
#include <STM32RTC.h>
1616

17-
/* Create a rtc object */
18-
STM32RTC rtc;
17+
/* Get the rtc object */
18+
STM32RTC& rtc = STM32RTC::getInstance();
1919

2020
/* Change these values to set the current initial time
2121
*

0 commit comments

Comments
 (0)