Implemented AKB monitor screen

This commit is contained in:
Yury Shuvakin
2022-08-17 01:09:17 +03:00
parent dce22c65d6
commit a4196df821
9 changed files with 274 additions and 10 deletions

View File

@@ -429,7 +429,7 @@ bool BMSInterface::connectSerial(QString port, int baudrate)
bool found = false;
for (VSerialInfo_t ser: listSerialPorts()) {
if (ser.systemPath == port) {
if (ser.name == port) {
found = true;
break;
}
@@ -522,7 +522,7 @@ QStringList BMSInterface::serialPortNames()
QStringList names;
for (const auto& info: listSerialPorts())
{
names.append(info.systemPath);
names.append(info.name);
}
return names;
}