From b47e35103e34d83bd0eee7b73d56e07ccf0eb1c0 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Fri, 1 Jul 2022 11:58:04 +0900 Subject: [PATCH] RTC: Fix RtcTime to allow constructors to be used without nsec Fix RtcTime to allow constructors to be used without nsec. In this case, nsec is 0 of the default argument. --- .../hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.cpp | 7 ------- .../hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.h | 1 - 2 files changed, 8 deletions(-) diff --git a/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.cpp b/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.cpp index 1b47fe56b..87239a27f 100644 --- a/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.cpp +++ b/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.cpp @@ -27,13 +27,6 @@ RtcTime::RtcTime(uint32_t sec, long nsec) update(); } -RtcTime::RtcTime(int year, int month, int day, int hour, int minute, int second) - : _year(year), _month(month), _day(day), - _hour(hour), _minute(minute), _second(second) -{ - RtcTime(_year, _month, _day, _hour, _minute, _second, 0); -}; - RtcTime::RtcTime(int year, int month, int day, int hour, int minute, int second, long nsec) : _nsec(nsec), _year(year), _month(month), _day(day), diff --git a/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.h b/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.h index c845dafb2..7af7b0afe 100644 --- a/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.h +++ b/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/RTC/src/RtcTime.h @@ -38,7 +38,6 @@ class RtcTime * @brief Create RtcTime object */ RtcTime(uint32_t sec = 0, long nsec = 0); - RtcTime(int year, int month, int day, int hour = 0, int minute = 0, int second = 0); RtcTime(int year, int month, int day, int hour = 0, int minute = 0, int second = 0, long nsec = 0); RtcTime(const char* date, const char* time);