From 153678523ffbc290b08c768a99641a2be2bae618 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 11 Apr 2023 14:03:54 +0200 Subject: [PATCH] using ttymxc2 instead of ttyUSB0 (bound to modem on PTU5) --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index a515a6f..ecda1b3 100644 --- a/main.cpp +++ b/main.cpp @@ -16,7 +16,7 @@ static void updateDC(hwinf const *hw) { qDebug() << "ENTER"; //return; for (int i=0; i< 1;++i) { - hw->dc_updateDC("dc2c4.bin", "115200", "ttyUSB0"); + hw->dc_updateDC("dc2c4.bin", "115200", "ttymxc2"); std::this_thread::sleep_for(std::chrono::milliseconds(3000)); } qDebug() << "LEAVE"; @@ -37,6 +37,7 @@ int main(int argc, char *argv[]) hwinf const* hw = plugin.loadPlugin(); if (!hw) { qCritical() << "Cannot load plugin"; + return -1; } std::thread t(updateDC, hw);