A few bug fixes
This commit is contained in:
+1
-1
@@ -294,7 +294,7 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const
|
|||||||
if (msg != NULL)
|
if (msg != NULL)
|
||||||
{
|
{
|
||||||
tempString.append("\n");
|
tempString.append("\n");
|
||||||
tempString.append(msg->name + " " + msg->comment + "\n");
|
tempString.append(msg->name + "\n" + msg->comment + "\n");
|
||||||
for (int j = 0; j < msg->sigHandler->getCount(); j++)
|
for (int j = 0; j < msg->sigHandler->getCount(); j++)
|
||||||
{
|
{
|
||||||
QString sigString;
|
QString sigString;
|
||||||
|
|||||||
+1
-1
@@ -104,8 +104,8 @@ bool DBC_SIGNAL::processAsText(const CANFrame &frame, QString &outString)
|
|||||||
foundVal = true;
|
foundVal = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!foundVal) outputString += QString::number(endResult) + unitName;
|
|
||||||
}
|
}
|
||||||
|
if (!foundVal) outputString += QString::number(endResult) + unitName;
|
||||||
}
|
}
|
||||||
else //otherwise display the actual number and unit (if it exists)
|
else //otherwise display the actual number and unit (if it exists)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -200,13 +200,13 @@ void MotorControllerConfigWindow::timerTick()
|
|||||||
}
|
}
|
||||||
else //save current value of all data items
|
else //save current value of all data items
|
||||||
{
|
{
|
||||||
uint16 thisValue;
|
uint16_t thisValue;
|
||||||
qDebug() << "Transmission: " << QString::number(transmitStep);
|
qDebug() << "Transmission: " << QString::number(transmitStep);
|
||||||
|
|
||||||
QString cellVal = ui->tableParams->item(transmitStep, 1)->text();
|
QString cellVal = ui->tableParams->item(transmitStep, 1)->text();
|
||||||
|
|
||||||
if (params[transmitStep].paramType != HEX)
|
if (params[transmitStep].paramType != HEX)
|
||||||
thisValue = (uint16_t)QString::number(cellVal);
|
thisValue = (uint16_t)Utility::ParseStringToNum(cellVal);
|
||||||
else
|
else
|
||||||
thisValue = (uint16_t)Utility::ParseStringToNum(cellVal);
|
thisValue = (uint16_t)Utility::ParseStringToNum(cellVal);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user