Skip to content

Commit d25945d

Browse files
committed
Update RTC example after enum name update
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 04b39e7 commit d25945d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/NonReg/RTC/RTC_Tests/RTC_Config.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
void rtc_config(STM32RTC::RTC_Source_Clock source, STM32RTC::RTC_Hour_Format format, const char* date, const char* time) {
2+
void rtc_config(STM32RTC::Source_Clock source, STM32RTC::Hour_Format format, const char* date, const char* time) {
33
if (!IS_CLOCK_SOURCE(source)) {
44
Serial.println("Wrong clock source");
55
return;

examples/NonReg/RTC/RTC_Tests/RTC_Tests.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ static byte day = 0;
5151
static byte month = 0;
5252
static byte year = 0;
5353

54-
static STM32RTC::RTC_Hour_Format hourFormat = STM32RTC::HOUR_24;
55-
static STM32RTC::RTC_AM_PM period = STM32RTC::AM;
54+
static STM32RTC::Hour_Format hourFormat = STM32RTC::HOUR_24;
55+
static STM32RTC::AM_PM period = STM32RTC::AM;
5656

5757
#ifndef STM32F1xx
5858
static STM32RTC::Alarm_Match SS_MATCH = STM32RTC::MATCH_SS;
@@ -70,7 +70,7 @@ void setup()
7070
void loop()
7171
{
7272
int c; // Serial input
73-
STM32RTC::RTC_Source_Clock clkSource = rtc.LSI_CLOCK;
73+
STM32RTC::Source_Clock clkSource = rtc.LSI_CLOCK;
7474

7575
// Select RTC clock source: LSI_CLOCK, LSE_CLOCK or HSE_CLOCK.
7676
Serial.println("Select clock Source:");

0 commit comments

Comments
 (0)