From 90615619d34ff2f09807f21a00e175d771b63d0b Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 12 Jan 2024 22:44:41 +0100 Subject: [PATCH] Cleanup unused blocksize --- src/js/tabs/onboard_logging.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/js/tabs/onboard_logging.js b/src/js/tabs/onboard_logging.js index 0a6f4a5281..c81ff5c314 100644 --- a/src/js/tabs/onboard_logging.js +++ b/src/js/tabs/onboard_logging.js @@ -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) { @@ -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() {