1
0
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:
Luc
2019-09-09 16:51:25 +02:00
parent 7baf850414
commit b69a90b699
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)
{