Skip to content

Commit cc3dbdb

Browse files
committed
Removed redundant variable from erase slot
1 parent 095e418 commit cc3dbdb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qt/main_window.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,10 @@ void MainWindow::slotProgReadDeviceId()
177177

178178
void MainWindow::slotProgErase()
179179
{
180-
const uint32_t addr = 0x00000000;
181180
QByteArray ba = ui->chipSelectComboBox->currentText().toLatin1();
182181
ChipInfo *chipInfo = getChipInfoByName(ba.data());
183182

184-
if (prog->eraseChip(addr, chipInfo->size))
183+
if (prog->eraseChip(0x00000000, chipInfo->size))
185184
log(tr("Failed to erase chip\n"));
186185
else
187186
log(tr("Chip has been erased successfully\n"));

0 commit comments

Comments
 (0)