mirror of
https://github.com/grblHAL/core.git
synced 2026-09-24 05:53:40 +08:00
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:
+4
-4
@@ -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)++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user