Added a new window used to edit parameters for my motor inverter control board. Fixed firmware updater - tested to work now!
This commit is contained in:
+5
-1
@@ -188,6 +188,7 @@ void CANFrameModel::recalcOverwrite()
|
||||
|
||||
QVariant CANFrameModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
int dLen;
|
||||
QString tempString;
|
||||
if (!index.isValid())
|
||||
return QVariant();
|
||||
@@ -220,7 +221,10 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const
|
||||
return QString::number(thisFrame.len);
|
||||
break;
|
||||
case 6: //data
|
||||
for (int i = 0; i < thisFrame.len; i++)
|
||||
dLen = thisFrame.len;
|
||||
if (dLen < 0) dLen = 0;
|
||||
if (dLen > 8) dLen = 8;
|
||||
for (int i = 0; i < dLen; i++)
|
||||
{
|
||||
tempString.append(Utility::formatNumber(thisFrame.data[i]));
|
||||
tempString.append(" ");
|
||||
|
||||
Reference in New Issue
Block a user