Skip to content

Commit

Permalink
Removed size check from boardsetupwindow as that now is done in vesci…
Browse files Browse the repository at this point in the history
…nterface
  • Loading branch information
vedderb committed Oct 15, 2024
1 parent 3bbdc68 commit d20409d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions boardsetupwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,7 @@ bool BoardSetupWindow::tryFirmwareUpload(){
testResult = false;
return false;
}
if (file.size() > 400000) {
QMessageBox::critical(this,
tr("Upload Error"),
tr("The selected file is too large to be a firmware."));
testResultMsg = "The included firmware file is too large.";
testResult = false;
return false;
}

QByteArray data = file.readAll();

fwRes = mVesc->fwUpload(data, is_Bootloader, num_VESCs > 1);
Expand Down

0 comments on commit d20409d

Please sign in to comment.