linamh/sci-electronics/labpowerqt/files/multichan.patch

36 lines
1.3 KiB
Diff
Raw Normal View History

2022-03-20 18:42:52 +01:00
*** labpowerqt-0.1.3/src/koradscpi.cpp 2017-11-27 07:03:16.000000000 +0100
--- labpowerqt-0.1.3/src/koradscpi.cpp 2021-06-27 14:54:56.000000000 +0200
***************
*** 326,339 ****
for (int i = 1; i <= this->noOfChannels; i++) {
com = std::make_shared<SerialCommand>(
static_cast<int>(c), i, QVariant(), true,
korcon::SERIALCOMMANDBUFLENGTH.at(c));
}
} else {
com = std::make_shared<SerialCommand>(
static_cast<int>(c), 1, QVariant(), true,
korcon::SERIALCOMMANDBUFLENGTH.at(c));
}
- comVec.push_back(com);
}
return comVec;
}
--- 326,340 ----
for (int i = 1; i <= this->noOfChannels; i++) {
com = std::make_shared<SerialCommand>(
static_cast<int>(c), i, QVariant(), true,
korcon::SERIALCOMMANDBUFLENGTH.at(c));
+ comVec.push_back(com);
}
} else {
com = std::make_shared<SerialCommand>(
static_cast<int>(c), 1, QVariant(), true,
korcon::SERIALCOMMANDBUFLENGTH.at(c));
+ comVec.push_back(com);
}
}
return comVec;
}