Implemented AKB monitor screen
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user