Update aqualinkd.c

pull/276/head
sfeakes 2024-04-15 14:58:19 -05:00 committed by GitHub
parent 7cca4215aa
commit f5a530700f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -1051,6 +1051,7 @@ void printHelp()
printf("\t-vv (Serial Debug logging)\n");
printf("\t-rsd (RS485 debug)\n");
printf("\t-rsrd (RS485 raw debug)\n");
printf("\t-ns (Don't terminate on serial errors like missing tty, no panel connection)\n");
}
int main(int argc, char *argv[])
@ -1138,6 +1139,11 @@ int main(int argc, char *argv[])
{
_cmdln_lograwRS485 = true;
}
else if (strcmp(argv[i], "-ns") == 0)
{
_aqconfig_.ignore_tty_err = true;
}
}
// Set this here, so it doesn;t get reset if the manager restarts the AqualinkD process.