mirror of
https://github.com/grblHAL/core.git
synced 2026-09-26 18:17:54 +08:00
Fix for regression causing no WCO data in the real time report.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user