Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sebromero committed Nov 25, 2024
1 parent 54ed541 commit 9da9cc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Arduino_LowPowerNiclaVision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ RTCWakeupDelay operator""_min(const unsigned long long int minutes)
return RTCWakeupDelay(minutes * 60);
}

RTCWakeupDelay operator""_h(const unsigned long long int minutes)
RTCWakeupDelay operator""_h(const unsigned long long int hours)
{
return RTCWakeupDelay(minutes * 60 * 60);
return RTCWakeupDelay(hours * 60 * 60);
}

/*
Expand Down
6 changes: 3 additions & 3 deletions src/Arduino_LowPowerNiclaVision.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ class RTCWakeupDelay {
}

friend RTCWakeupDelay operator""_s(const unsigned long long int seconds);
friend RTCWakeupDelay operator""_min(const unsigned long long int seconds);
friend RTCWakeupDelay operator""_h(const unsigned long long int seconds);
friend RTCWakeupDelay operator""_min(const unsigned long long int minutes);
friend RTCWakeupDelay operator""_h(const unsigned long long int hours);
friend RTCWakeupDelay operator+(const RTCWakeupDelay d1,
const RTCWakeupDelay d2);

Expand Down Expand Up @@ -284,6 +284,6 @@ RTCWakeupDelay operator""_min(const unsigned long long int minutes);
* @param hours The number of hours to wait before waking up.
* @return The delay object.
*/
RTCWakeupDelay operator""_h(const unsigned long long int minutes);
RTCWakeupDelay operator""_h(const unsigned long long int hours);

#endif // End of header guard

0 comments on commit 9da9cc0

Please sign in to comment.