mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-30 09:39:49 +02:00
Merge pull request #52 from gflaser-au/status_report
Changed status report number format for FS: and F: fields
This commit is contained in:
@@ -641,11 +641,11 @@ void report_realtime_status(uint8_t client)
|
|||||||
// Report realtime feed speed
|
// Report realtime feed speed
|
||||||
#ifdef REPORT_FIELD_CURRENT_FEED_SPEED
|
#ifdef REPORT_FIELD_CURRENT_FEED_SPEED
|
||||||
#ifdef VARIABLE_SPINDLE
|
#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);
|
strcat(status, temp);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
sprintf(temp, "|F:%4.3f", st_get_realtime_rate());
|
sprintf(temp, "|F:%.0f", st_get_realtime_rate());
|
||||||
strcat(status, temp);
|
strcat(status, temp);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user