mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-03 11:22:38 +02:00
fix CLIENT_NONE ignored
CLIENT_NONE is 0
This commit is contained in:
@@ -106,7 +106,7 @@ void protocol_main_loop()
|
||||
// initial filtering by removing spaces and comments and capitalizing all letters.
|
||||
|
||||
uint8_t client = CLIENT_SERIAL;
|
||||
for (client = 1; client <= CLIENT_COUNT; client++)
|
||||
for (client = 0; client <= CLIENT_COUNT; client++)
|
||||
{
|
||||
while((c = serial_read(client)) != SERIAL_NO_DATA) {
|
||||
if ((c == '\n') || (c == '\r')) { // End of line reached
|
||||
|
@@ -312,7 +312,7 @@ void serialCheck()
|
||||
|
||||
void serial_reset_read_buffer(uint8_t client)
|
||||
{
|
||||
for (uint8_t client_num = 1; client_num <= CLIENT_COUNT; client_num++)
|
||||
for (uint8_t client_num = 0; client_num <= CLIENT_COUNT; client_num++)
|
||||
{
|
||||
if (client == client_num || client == CLIENT_ALL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user