From d9aadc203462a3708acb46b69a77e43641e54333 Mon Sep 17 00:00:00 2001 From: KochynVolodymyr <95262932+KochynVolodymyr@users.noreply.github.com> Date: Wed, 23 Aug 2023 02:26:38 +0300 Subject: [PATCH] Pin planner: fixed package pins loading (#1236) --- src/PinAssignment/PackagePinsLoader.cpp | 2 +- src/PinAssignment/PackagePinsModel.h | 26 ++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/PinAssignment/PackagePinsLoader.cpp b/src/PinAssignment/PackagePinsLoader.cpp index 7ec0fc6b9..7e8423fe7 100644 --- a/src/PinAssignment/PackagePinsLoader.cpp +++ b/src/PinAssignment/PackagePinsLoader.cpp @@ -119,7 +119,7 @@ void PackagePinsLoader::parseHeader(const QString &header) { QStringList modesRx{}; QStringList modesTx{}; for (const auto &col : columns) { - if (col.startsWith("Mode_")) { + if (col.startsWith("Mode_", Qt::CaseInsensitive)) { m_model->insertMode(columns.indexOf(col) - 1, col); if (col.endsWith("tx", Qt::CaseInsensitive)) modesTx.append(col); diff --git a/src/PinAssignment/PackagePinsModel.h b/src/PinAssignment/PackagePinsModel.h index 8c561f1df..244884c53 100644 --- a/src/PinAssignment/PackagePinsModel.h +++ b/src/PinAssignment/PackagePinsModel.h @@ -32,19 +32,19 @@ enum PinData { BallId = 2, InternalPinName = 12, ModeFirst = 13, - ModeLast = 42, - RefClock = 43, - Bank = 44, - ALT = 45, - DebugMode = 46, - ScanMode = 47, - MbistMode = 48, - Type = 49, - Dir = 50, - Voltage = 51, - PowerPad = 52, - Discription = 53, - Voltage2 = 54, + ModeLast = 46, + RefClock = 57, + Bank = 58, + ALT = 59, + DebugMode = 60, + ScanMode = 61, + MbistMode = 62, + Type = 63, + Dir = 64, + Voltage = 65, + PowerPad = 66, + Discription = 67, + Voltage2 = 68, }; struct PackagePinData {