summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorkutayboz <kutayboz@gmail.com>2023-06-05 02:38:14 +0300
committerkutayboz <kutayboz@gmail.com>2023-06-05 02:38:14 +0300
commit97a92eaadb6806a3e7f898bafec7b0105b9829a5 (patch)
treeb5c828e1796f4269679fa5bf190b3385ae07ae13 /src/main.c
parent2374721c6840f56c07c31abcfddd6bd385d97d8b (diff)
downloadcelnetmon-97a92eaadb6806a3e7f898bafec7b0105b9829a5.tar.gz
Fixed serial query function
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
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;