mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 12:55:13 +03:00
Update onboard_logging.js
This commit is contained in:
parent
b7bc81bc8d
commit
ce3faac6e6
1 changed files with 3 additions and 5 deletions
|
@ -100,7 +100,7 @@ TABS.onboard_logging.initialize = function (callback) {
|
||||||
|
|
||||||
helper.features.reset();
|
helper.features.reset();
|
||||||
helper.features.fromUI($('.require-blackbox-supported'));
|
helper.features.fromUI($('.require-blackbox-supported'));
|
||||||
helper.features.execute(function () {
|
helper.features.execute(function () {
|
||||||
mspHelper.sendBlackboxConfiguration(save_to_eeprom);
|
mspHelper.sendBlackboxConfiguration(save_to_eeprom);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -354,12 +354,10 @@ TABS.onboard_logging.initialize = function (callback) {
|
||||||
const filename = 'blackbox_log_' + date.getFullYear() + '-' + zeroPad(date.getMonth() + 1, 2) + '-'
|
const filename = 'blackbox_log_' + date.getFullYear() + '-' + zeroPad(date.getMonth() + 1, 2) + '-'
|
||||||
+ zeroPad(date.getDate(), 2) + '_' + zeroPad(date.getHours(), 2) + zeroPad(date.getMinutes(), 2)
|
+ zeroPad(date.getDate(), 2) + '_' + zeroPad(date.getHours(), 2) + zeroPad(date.getMinutes(), 2)
|
||||||
+ zeroPad(date.getSeconds(), 2);
|
+ zeroPad(date.getSeconds(), 2);
|
||||||
const accepts = [{
|
const accepts = '.txt';
|
||||||
description: 'TXT files', extensions: ['txt'],
|
|
||||||
}];
|
|
||||||
|
|
||||||
nwdialog.setContext(document);
|
nwdialog.setContext(document);
|
||||||
nwdialog.saveFileDialog(filename, accepts, '', function(file) {
|
nwdialog.saveFileDialog(filename, accepts, '', function(file) {
|
||||||
onComplete(file);
|
onComplete(file);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue