Skip to content

Commit de80081

Browse files
committed
Fix typo in params
1 parent 51c8ee6 commit de80081

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Arduino_LowPowerPortentaH7.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ RTCWakeupDelay operator""_min(const unsigned long long int minutes)
8080
return RTCWakeupDelay(minutes * 60);
8181
}
8282

83-
RTCWakeupDelay operator""_h(const unsigned long long int minutes)
83+
RTCWakeupDelay operator""_h(const unsigned long long int hours)
8484
{
85-
return RTCWakeupDelay(minutes * 60 * 60);
85+
return RTCWakeupDelay(hours * 60 * 60);
8686
}
8787

8888
LowPowerStandbyType::UntilEitherClass operator|(

src/Arduino_LowPowerPortentaH7.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ class RTCWakeupDelay {
109109
}
110110

111111
friend RTCWakeupDelay operator""_s(const unsigned long long int seconds);
112-
friend RTCWakeupDelay operator""_min(const unsigned long long int seconds);
113-
friend RTCWakeupDelay operator""_h(const unsigned long long int seconds);
112+
friend RTCWakeupDelay operator""_min(const unsigned long long int minutes);
113+
friend RTCWakeupDelay operator""_h(const unsigned long long int hours);
114114
friend RTCWakeupDelay operator+(const RTCWakeupDelay d1,
115115
const RTCWakeupDelay d2);
116116

@@ -301,8 +301,8 @@ extern const LowPowerPortentaH7& LowPower;
301301
RTCWakeupDelay operator+(const RTCWakeupDelay d1, const RTCWakeupDelay d2);
302302
RTCWakeupDelay operator""_s(const unsigned long long int seconds);
303303
RTCWakeupDelay operator""_min(const unsigned long long int minutes);
304-
RTCWakeupDelay operator""_h(const unsigned long long int minutes);
305304

305+
RTCWakeupDelay operator""_h(const unsigned long long int hours);
306306
LowPowerStandbyType::UntilEitherClass operator|(
307307
const LowPowerStandbyType::UntilPinActivityClass&,
308308
const LowPowerStandbyType::UntilTimeElapsedClass&);

0 commit comments

Comments
 (0)