mirror of
https://github.com/grblHAL/core.git
synced 2026-09-27 19:13:58 +08:00
A bit of refactoring related to spindles as a first step for a coming settings structure revision, "hardened" some code.
This commit is contained in:
+1
-1
@@ -827,7 +827,7 @@ char *ngc_string_param_get (ngc_string_id_t id)
|
||||
break;
|
||||
} while((sp = sp->next));
|
||||
|
||||
return sp->value;
|
||||
return sp ? sp->value : NULL;
|
||||
}
|
||||
|
||||
bool ngc_string_param_exists (ngc_string_id_t id)
|
||||
|
||||
Reference in New Issue
Block a user