From 592f16e5da0666dfeb20ebf0210678ed4101a339 Mon Sep 17 00:00:00 2001 From: Jaro Date: Sun, 29 Aug 2021 23:11:18 +0200 Subject: [PATCH] Fix read --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index ea0169c..afdc96a 100755 --- a/main.cpp +++ b/main.cpp @@ -210,7 +210,7 @@ int main(int argc, char* argv[]) for (;;) { line = serial.readStringUntil("\r\n"); if (line.rfind("[OK]",0) == 0) - cout << line; + cout << line << endl; } } catch (...) { @@ -218,7 +218,7 @@ int main(int argc, char* argv[]) serial.writeString("rb\r\n"); boost::this_thread::sleep(posix_time::milliseconds(100)); - serial.readChar(1); + //serial.readChar(1); //serial.readChar(1); modem.setSerialPort(&serial);