Skip to content

Commit

Permalink
Fixed undefined type error
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaigner committed Mar 26, 2024
1 parent 48a69c4 commit 9ed1a7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webgui/js/util/firmwareUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ 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) {
return getFWInfo('https://api.github.com/repos/asterics/esp32_mouse_keyboard/releases/latest', '.fm3');
} else {
Expand Down

0 comments on commit 9ed1a7f

Please # to comment.