From 81deea75e2e317ebc76455861fc2f503c96efbc0 Mon Sep 17 00:00:00 2001 From: David B Date: Tue, 4 Jul 2023 11:23:27 +1200 Subject: [PATCH] fix debug print statement. --- src/RampGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RampGenerator.cpp b/src/RampGenerator.cpp index 1faad1a5..a2507f80 100644 --- a/src/RampGenerator.cpp +++ b/src/RampGenerator.cpp @@ -40,7 +40,7 @@ int8_t RampGenerator::startRun(bool countUp) { #ifdef DEBUG char buf[256]; sprintf(buf, "Ramp data: curr_ticks = %lu travel_ticks = %lu\n", - _rw.curr_ticks, _config->min_travel_ticks); + _rw.curr_ticks, _parameters.min_travel_ticks); Serial.println(buf); #endif return MOVE_OK;