Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ezTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ namespace ezt {
}
}

ezError_t error(const bool reset /* = false */) {
ezError_t error(ezError_t err, const bool reset /* = false */) {
_last_error = err;
ezError_t tmp = _last_error;
if (reset) _last_error = NO_ERROR;
return tmp;
Expand Down
2 changes: 1 addition & 1 deletion src/ezTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ namespace ezt {
String dayStr(const uint8_t month);
void deleteEvent(const uint8_t event_handle);
void deleteEvent(void (*function)());
ezError_t error(const bool reset = false);
ezError_t error(ezError_t err, const bool reset = false);
String errorString(const ezError_t err = LAST_ERROR);
void events();
time_t makeOrdinalTime(const uint8_t hour, const uint8_t minute, const uint8_t second, uint8_t ordinal, const uint8_t wday, const uint8_t month, uint16_t year);
Expand Down