Skip to content

Commit 45c9ca7

Browse files
committed
Added validation for BB offset parameter
1 parent 56ec2a7 commit 45c9ca7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qt/parallel_chip_db_table_model.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ bool ParallelChipDbTableModel::setData(const QModelIndex &index,
381381
case ParallelChipDb::CHIP_PARAM_BB_MARK_OFF:
382382
if (chipDb->getParamFromString(value.toString(), paramVal))
383383
return false;
384+
if (chipDb->isParamValid(paramVal, 0, 0xFF))
385+
return false;
384386
chipDb->setBBMarkOffset(index.row(), paramVal);
385387
return true;
386388
case ParallelChipDb::CHIP_PARAM_T_CS:

0 commit comments

Comments
 (0)