Skip to content

Commit

Permalink
Cleanup unused blocksize
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jan 12, 2024
1 parent 3f2c60e commit 9061561
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/js/tabs/onboard_logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const onboard_logging = {
writeError: false,

BLOCK_SIZE: 4096,
VCP_BLOCK_SIZE_3_0: 512,
VCP_BLOCK_SIZE: 4096,
};

onboard_logging.initialize = function (callback) {
Expand Down Expand Up @@ -434,11 +432,8 @@ onboard_logging.initialize = function (callback) {

function flash_save_begin() {
if (GUI.connected_to) {
if (FC.boardHasVcp()) {
self.blockSize = self.VCP_BLOCK_SIZE;
} else {
self.blockSize = self.BLOCK_SIZE;
}

self.blockSize = self.BLOCK_SIZE;

// Begin by refreshing the occupied size in case it changed while the tab was open
flash_update_summary(function() {
Expand Down

0 comments on commit 9061561

Please sign in to comment.