Made named O-call LinuxCNC compliant by changing name to lowercase.

Fix for parking motion using `$32` laser mode setting when it should use the current spindle mode.
For developers: changed signature of `hal.stream.on_linestate_changed()` to include stream properties.
This commit is contained in:
Terje Io
2026-06-19 20:56:58 +02:00
parent 41abd8c84d
commit fe7632bb7d
12 changed files with 102 additions and 58 deletions
+4 -4
View File
@@ -591,7 +591,7 @@ starting at the index given by the pos offset.
*/
FLASHMEM status_code_t ngc_read_name (char *line, uint_fast8_t *pos, char *buffer)
{
char *s;
char c, *s;
uint_fast8_t len = 0;
status_code_t status = Status_BadNumberFormat;
@@ -599,13 +599,13 @@ FLASHMEM status_code_t ngc_read_name (char *line, uint_fast8_t *pos, char *buffe
s++;
while(*s && *s != '>' && len <= NGC_MAX_PARAM_LENGTH) {
*buffer++ = *s++;
while((c = *s++) && c != '>' && len <= NGC_MAX_PARAM_LENGTH) {
*buffer++ = LCAPS(c);
(*pos)++;
len++;
}
if((status = *s == '>' ? Status_OK : Status_FlowControlSyntaxError) == Status_OK) {
if((status = c == '>' ? Status_OK : Status_FlowControlSyntaxError) == Status_OK) {
*buffer = '\0';
(*pos)++;
}