Add one missing 'const'

This commit is contained in:
Edgar Bonet
2021-12-06 15:15:48 +01:00
parent efc4eb72e7
commit bc6139e85d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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.