This commit is contained in:
2021-08-28 15:09:31 +02:00
parent e20021dd2d
commit 8a1bc534e5
4 changed files with 27 additions and 38 deletions

View File

@@ -42,17 +42,6 @@ namespace po = boost::program_options;
typedef vector< string > split_vector_type;
enum severity_level
{
normal,
notification,
warning,
error,
critical
};
BOOST_LOG_ATTRIBUTE_KEYWORD(severity, "Severity", severity_level)
static void init_log(void)
{
/* init boost log
@@ -220,7 +209,8 @@ int main(int argc, char* argv[])
try {
for (;;) {
line = serial.readStringUntil("\r\n");
cout << line << endl;
if (line.rfind("[OK]",0) == 0)
cout << line;
}
} catch (...) {
@@ -234,7 +224,7 @@ int main(int argc, char* argv[])
modem.setSerialPort(&serial);
modem.setFilePath(path);
modem.setDefaultFileName(filename);
modem.receiveProgress.connect(showProgress);
modem.receiveProgress.connect(showProgress);
modem.startReceive();