mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
firmware flasher support in tabs
This commit is contained in:
parent
56a2bb6a60
commit
31dcbbfa91
2 changed files with 14 additions and 3 deletions
|
@ -15,7 +15,9 @@ tabs.default.initialize = function(callback) {
|
||||||
$('div.changelog.configurator .wrapper').load('./changelog.html');
|
$('div.changelog.configurator .wrapper').load('./changelog.html');
|
||||||
|
|
||||||
// UI Hooks
|
// UI Hooks
|
||||||
$('a.firmware_flasher').click(tab_initialize_firmware_flasher);
|
$('a.firmware_flasher').click(function() {
|
||||||
|
tabs.firmware_flasher.initialize();
|
||||||
|
});
|
||||||
|
|
||||||
$('div.welcome a').click(function() {
|
$('div.welcome a').click(function() {
|
||||||
ga_tracker.sendEvent('ExternalUrls', 'Click', $(this).prop('href'));
|
ga_tracker.sendEvent('ExternalUrls', 'Click', $(this).prop('href'));
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
function tab_initialize_firmware_flasher(callback) {
|
tabs.firmware_flasher = function() {
|
||||||
|
};
|
||||||
|
|
||||||
|
tabs.firmware_flasher.initialize = function(callback) {
|
||||||
ga_tracker.sendAppView('Firmware Flasher');
|
ga_tracker.sendAppView('Firmware Flasher');
|
||||||
GUI.active_tab = 'firmware_flasher';
|
GUI.active_tab = 'firmware_flasher';
|
||||||
|
|
||||||
|
@ -228,8 +231,14 @@ function tab_initialize_firmware_flasher(callback) {
|
||||||
GUI.log(chrome.i18n.getMessage('firmwareFlasherWaitForFinish'));
|
GUI.log(chrome.i18n.getMessage('firmwareFlasherWaitForFinish'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (callback) callback();
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
|
tabs.firmware_flasher.cleanup = function(callback) {
|
||||||
|
if (callback) callback();
|
||||||
|
};
|
||||||
|
|
||||||
function parse_hex(str, callback) {
|
function parse_hex(str, callback) {
|
||||||
// parsing hex in different thread
|
// parsing hex in different thread
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue