mirror of
https://github.com/adafruit/RTClib.git
synced 2026-07-28 04:05:31 +00:00
Add one missing 'const'
This commit is contained in:
+1
-1
@@ -438,7 +438,7 @@ bool DateTime::isValid() const {
|
||||
*/
|
||||
/**************************************************************************/
|
||||
|
||||
char *DateTime::toString(char *buffer) {
|
||||
char *DateTime::toString(char *buffer) const {
|
||||
uint8_t apTag =
|
||||
(strstr(buffer, "ap") != nullptr) || (strstr(buffer, "AP") != nullptr);
|
||||
uint8_t hourReformatted = 0, isPM = false;
|
||||
|
||||
+1
-1
@@ -150,7 +150,7 @@ public:
|
||||
DateTime(const __FlashStringHelper *date, const __FlashStringHelper *time);
|
||||
DateTime(const char *iso8601date);
|
||||
bool isValid() const;
|
||||
char *toString(char *buffer);
|
||||
char *toString(char *buffer) const;
|
||||
|
||||
/*!
|
||||
@brief Return the year.
|
||||
|
||||
Reference in New Issue
Block a user