Skip to content

Commit d3b5ae0

Browse files
committed
Init common chip parameters in base class
1 parent 0176c82 commit d3b5ae0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

qt/chip_info.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
ChipInfo::ChipInfo()
99
{
10+
name = "Unknown";
11+
pageSize = 0;
12+
blockSize = 0;
13+
totalSize = 0;
14+
spareSize = 0;
15+
bbMarkOffset = 0;
1016
hal = CHIP_HAL_LAST;
1117
}
1218

qt/spi_chip_info.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ typedef struct __attribute__((__packed__))
1313
SpiChipInfo::SpiChipInfo()
1414
{
1515
hal = CHIP_HAL_SPI;
16-
spareSize = 0;
17-
bbMarkOffset = 0;
1816
}
1917

2018
SpiChipInfo::~SpiChipInfo()

0 commit comments

Comments
 (0)