From 9da9cc0125f668c8eb7fb0cc14a03552fcc4a213 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Mon, 25 Nov 2024 14:24:00 +0100 Subject: [PATCH] Fix typos --- src/Arduino_LowPowerNiclaVision.cpp | 4 ++-- src/Arduino_LowPowerNiclaVision.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Arduino_LowPowerNiclaVision.cpp b/src/Arduino_LowPowerNiclaVision.cpp index c1ad8f0..fd110ac 100644 --- a/src/Arduino_LowPowerNiclaVision.cpp +++ b/src/Arduino_LowPowerNiclaVision.cpp @@ -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); } /* diff --git a/src/Arduino_LowPowerNiclaVision.h b/src/Arduino_LowPowerNiclaVision.h index 1c52e3a..9ca6ca5 100644 --- a/src/Arduino_LowPowerNiclaVision.h +++ b/src/Arduino_LowPowerNiclaVision.h @@ -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); @@ -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