Skip to content

Commit 9d44bfd

Browse files
committed
Fixed hex presentation of SPI chip parameters
1 parent 4f508cd commit 9d44bfd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

qt/spi_chip_db_table_model.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,17 @@ QVariant SpiChipDbTableModel::data(const QModelIndex &index, int role) const
3939
case SpiChipDb::CHIP_PARAM_NAME:
4040
return chipDb->getChipName(index.row());
4141
case SpiChipDb::CHIP_PARAM_PAGE_SIZE:
42-
return chipDb->getPageSize(index.row());
42+
chipDb->getHexStringFromParam(chipDb->getPageSize(index.row()),
43+
paramStr);
44+
return paramStr;
4345
case SpiChipDb::CHIP_PARAM_BLOCK_SIZE:
44-
return chipDb->getBlockSize(index.row());
46+
chipDb->getHexStringFromParam(chipDb->getBlockSize(index.row()),
47+
paramStr);
48+
return paramStr;
4549
case SpiChipDb::CHIP_PARAM_TOTAL_SIZE:
46-
return chipDb->getTotalSize(index.row());
50+
chipDb->getHexStringFromParam(chipDb->getTotalSize(index.row()),
51+
paramStr);
52+
return paramStr;
4753
case SpiChipDb::CHIP_PARAM_ID1:
4854
chipDb->getHexStringFromParam(chipDb->getChipParam(index.row(),
4955
SpiChipInfo::CHIP_PARAM_ID1),

0 commit comments

Comments
 (0)