From 6bfaa5945ed528d613c5c0f150f4ab87439dd585 Mon Sep 17 00:00:00 2001 From: gflaser-au <43978849+gflaser-au@users.noreply.github.com> Date: Thu, 15 Nov 2018 20:08:34 +1000 Subject: [PATCH] changed status report for override values from floats to whole number integers, as shown in grbl real time status report doc example. --- Grbl_Esp32/report.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Grbl_Esp32/report.cpp b/Grbl_Esp32/report.cpp index c6f3a176..2a536ec8 100644 --- a/Grbl_Esp32/report.cpp +++ b/Grbl_Esp32/report.cpp @@ -641,11 +641,11 @@ void report_realtime_status(uint8_t client) // Report realtime feed speed #ifdef REPORT_FIELD_CURRENT_FEED_SPEED #ifdef VARIABLE_SPINDLE - sprintf(temp, "|FS:%4.3f,%4.3f", st_get_realtime_rate(), sys.spindle_speed); + sprintf(temp, "|FS:%.0f,%.0f", st_get_realtime_rate(), sys.spindle_speed); strcat(status, temp); #else - sprintf(temp, "|F:%4.3f", st_get_realtime_rate()); + sprintf(temp, "|F:%.0f", st_get_realtime_rate()); strcat(status, temp); #endif #endif