From 97a92eaadb6806a3e7f898bafec7b0105b9829a5 Mon Sep 17 00:00:00 2001 From: kutayboz Date: Mon, 5 Jun 2023 02:38:14 +0300 Subject: Fixed serial query function --- src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a2a9846..c903181 100644 --- a/src/main.c +++ b/src/main.c @@ -21,7 +21,7 @@ int main() { return 1; } - if (0 != querySerialPort(&output, serialPort, "AT")) { + /* if (0 != querySerialPort(&output, serialPort, "AT")) { printf("Error querySerialPort()\n"); close(serialPort); free(output); @@ -33,7 +33,7 @@ int main() { free(output); return 1; } - } + } */ for (idx = 0; idx < sizeof(commandList) / sizeof(*commandList); idx++) { if (0 != querySerialPort(&output, serialPort, commandList[idx])) { @@ -42,16 +42,16 @@ int main() { free(output); return 1; } - printf("%s", output); + printf("%s\n", output); } close(serialPort); - if (0 != modemPowerToggle(17)) { + /* if (0 != modemPowerToggle(17)) { printf("Error toggling modem power\n"); free(output); return 1; - } + } */ free(output); return 0; -- cgit v1.3