Skip to content

Commit b6dbb0a

Browse files
author
Jack Christensen
committed
powerFail() did not explicitly return a true value.
(It must have worked most of the time just due to dumb luck.)
1 parent 629ab0f commit b6dbb0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MCP79412RTC.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ boolean MCP79412RTC::powerFail(time_t *powerDown, time_t *powerUp)
401401
if (*powerDown > *powerUp) {
402402
--dn.Year;
403403
*powerDown = makeTime(dn);
404-
}
404+
}
405+
return true;
405406
}
406407
else
407408
return false;

0 commit comments

Comments
 (0)