A few bug fixes

This commit is contained in:
Collin Kidder
2017-08-13 20:27:15 -04:00
parent 0b7a3d7c18
commit fb634fe9b5
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -200,13 +200,13 @@ void MotorControllerConfigWindow::timerTick()
}
else //save current value of all data items
{
uint16 thisValue;
uint16_t thisValue;
qDebug() << "Transmission: " << QString::number(transmitStep);
QString cellVal = ui->tableParams->item(transmitStep, 1)->text();
if (params[transmitStep].paramType != HEX)
thisValue = (uint16_t)QString::number(cellVal);
thisValue = (uint16_t)Utility::ParseStringToNum(cellVal);
else
thisValue = (uint16_t)Utility::ParseStringToNum(cellVal);