using ttymxc2 instead of ttyUSB0 (bound to modem on PTU5)
This commit is contained in:
parent
3d3ec297c0
commit
153678523f
3
main.cpp
3
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);
|
||||
|
Loading…
Reference in New Issue
Block a user