Skip to content

Commit

Permalink
memory reservation for maximum chip array buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbigmdm committed Feb 5, 2024
1 parent 8068cb3 commit b7cf9bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IMSProg_programmer/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ MainWindow::MainWindow(QWidget *parent) :
// connect and status check
statusCH341 = ch341a_spi_init();
ch341StatusFlashing();
chipData.reserve(64 * 1024 *1024 + 2048);
chipData.resize(256);
chipData.fill(char(0xff));
ch341a_spi_shutdown();
Expand Down

0 comments on commit b7cf9bb

Please sign in to comment.