diff options
| author | kutayboz <kutayboz@gmail.com> | 2023-06-05 02:38:14 +0300 |
|---|---|---|
| committer | kutayboz <kutayboz@gmail.com> | 2023-06-05 02:38:14 +0300 |
| commit | 97a92eaadb6806a3e7f898bafec7b0105b9829a5 (patch) | |
| tree | b5c828e1796f4269679fa5bf190b3385ae07ae13 /src/main.c | |
| parent | 2374721c6840f56c07c31abcfddd6bd385d97d8b (diff) | |
| download | celnetmon-97a92eaadb6806a3e7f898bafec7b0105b9829a5.tar.gz | |
Fixed serial query function
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |
