Fix for typecast issue causing compile failure with some compilers. Ref issue #761.

This commit is contained in:
Terje Io
2025-06-21 07:05:50 +02:00
parent 5614f505fb
commit e03e594ca5
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -987,7 +987,7 @@ ISR_CODE bool ISR_FUNC(protocol_enqueue_realtime_command)(char c)
break;
default:
if((c < ' ' && c != ASCII_BS) || (c > ASCII_DEL && c <= 0xBF))
if(((unsigned char)c < ' ' && c != ASCII_BS) || ((unsigned char)c > ASCII_DEL && (unsigned char)c <= 0xBF))
drop = grbl.on_unknown_realtime_cmd == NULL || grbl.on_unknown_realtime_cmd(c);
break;
}