Minor change to shut up some compilers incorrectly warning about a potentially uninitialized variable. Ref. issue #959.

This commit is contained in:
Terje Io
2026-05-28 16:26:34 +02:00
parent 2c67781d8f
commit 266f0db62d
2 changed files with 14 additions and 2 deletions
+13 -1
View File
@@ -1,6 +1,18 @@
## grblHAL changelog
<a name="20260518">Build 20260525
<a name="20260528">20260528
Core:
* Minor change to shut up some compilers incorrectly warning about a potentially uninitialized variable. Ref. issue [#959](https://github.com/grblHAL/core/issues/959).
Plugins:
* EEPROM: increased the write delay somewhat to avoid hangs. Ref. issue [#2](https://github.com/grblHAL/Plugin_EEPROM/issues/2).
---
<a name="20260525">Build 20260525
Core:
+1 -1
View File
@@ -4536,7 +4536,7 @@ status_code_t gc_execute_block (char *block)
{
// NOTE: gc_block.values.xyz is returned from mc_probe_cycle with the updated position value. So
// upon a successful probing cycle, the machine position and the returned value should be the same.
probe_id_t probe_id;
probe_id_t probe_id = Probe_Default; // initialized to shut up compiler warning
plan_data.condition.no_feed_override = !settings.probe.allow_feed_override;
if(gc_block.select_probe){
if((gc_block.select_probe = (probe_id_t)gc_block.values.p != (probe_id = hal.probe.get_state().probe_id))) {