mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-25 11:52:20 +08:00
ui: display actual fingerprint name with auto-fingerprint (#906)
use platform directly Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
This commit is contained in:
@@ -70,14 +70,6 @@ void PlatformSelector::refresh(bool _offroad) {
|
||||
|
||||
platform = QString::fromStdString(CP.getCarFingerprint().cStr());
|
||||
|
||||
for (auto it = platforms.constBegin(); it != platforms.constEnd(); ++it) {
|
||||
if (it.value()["platform"].toString() == platform) {
|
||||
platform = it.key();
|
||||
brand = it.value()["brand"].toString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (platform == "MOCK") {
|
||||
platform = unrecognized_str;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user