From 057c07867aa002879911667874d307f900767c62 Mon Sep 17 00:00:00 2001 From: Benjamin Aigner Date: Tue, 26 Mar 2024 11:36:54 +0100 Subject: [PATCH] .. --- webgui/js/util/firmwareUtil.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webgui/js/util/firmwareUtil.js b/webgui/js/util/firmwareUtil.js index 3ef1667..404fed8 100644 --- a/webgui/js/util/firmwareUtil.js +++ b/webgui/js/util/firmwareUtil.js @@ -155,10 +155,7 @@ firmwareUtil.parseIntelHex = function (data, bufferSize) { }; firmwareUtil.getBTFWInfo = function () { - device = device || C.CURRENT_DEVICE; - majorVersion = majorVersion || ATDevice.getMajorVersion(); - let deviceIsFM = device === C.AT_DEVICE_FLIPMOUSE; - if (deviceIsFM && majorVersion === 3) { + if (C.CURRENT_DEVICE === "FLipMouse" && majorVersion === 3) { return getFWInfo('https://api.github.com/repos/asterics/esp32_mouse_keyboard/releases/latest', '.fm3'); } else { return getFWInfo('https://api.github.com/repos/asterics/esp32_mouse_keyboard/releases/latest', '.bin');