Fix pause/resume SD print

Followup to #12551, addressing #12566
This commit is contained in:
Scott Lahteine
2018-11-30 19:22:56 -06:00
parent 2224a4d61a
commit 261c6f4b96
6 changed files with 18 additions and 22 deletions

View File

@ -71,13 +71,13 @@ bool Stopwatch::start() {
else return false;
}
void Stopwatch::resume(const millis_t duration) {
void Stopwatch::resume(const millis_t with_time) {
#if ENABLED(DEBUG_STOPWATCH)
Stopwatch::debug(PSTR("resume"));
#endif
reset();
if ((accumulator = duration)) state = RUNNING;
if ((accumulator = with_time)) state = RUNNING;
}
void Stopwatch::reset() {

View File

@ -75,7 +75,7 @@ class Stopwatch {
* @brief Resume the stopwatch
* @details Resume a timer from a given duration
*/
static void resume(const millis_t duration);
static void resume(const millis_t with_time);
/**
* @brief Reset the stopwatch