Fix for regression causing no WCO data in the real time report.

This commit is contained in:
Terje Io
2025-10-22 08:20:54 +02:00
parent b5b236ca3f
commit f5f31e6780
2 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
#else
#define GRBL_VERSION "1.1f"
#endif
#define GRBL_BUILD 20251018
#define GRBL_BUILD 20251022
#define GRBL_URL "https://github.com/grblHAL"
+3 -6
View File
@@ -1372,17 +1372,14 @@ void report_realtime_status (stream_write_ptr stream_write)
if((report.wco = wco_counter == 0 || report.wco)) {
if(wco_counter == 0 || report.wco || report.force_wco || report.gwco || report.all) {
wco_counter = state & (STATE_HOMING|STATE_CYCLE|STATE_HOLD|STATE_JOG|STATE_SAFETY_DOOR)
? (REPORT_WCO_REFRESH_BUSY_COUNT - 1) // Reset counter for slow refresh
: (REPORT_WCO_REFRESH_IDLE_COUNT - 1);
// If protocol_buffer_synchronize() is running
// delay outputting WCO until sync is completed
// unless requested from stepper_driver_interrupt_handler.
if(!report.all && (report.overrides || !report.force_wco)) {
report.wco = Off;
if(!(report.wco = !report.overrides || report.all || report.force_wco || report.gwco))
delayed_report.wco = On;
}
} else
wco_counter--;