mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 16:55:24 +03:00
Change the extension of blackbox saved files to BBL and add as prefix
the flight controller identifier.
This commit is contained in:
parent
780451cd38
commit
445b9931bb
4 changed files with 11 additions and 5 deletions
9
main.js
9
main.js
|
@ -493,8 +493,13 @@ function generateFilename(prefix, suffix) {
|
|||
var date = new Date();
|
||||
var filename = prefix;
|
||||
|
||||
if (CONFIG && CONFIG.name && CONFIG.name.trim() !== '') {
|
||||
filename = filename + '_' + CONFIG.name.trim().replace(' ', '_');
|
||||
if (CONFIG) {
|
||||
if (CONFIG.flightControllerIdentifier) {
|
||||
filename = CONFIG.flightControllerIdentifier + '_' + filename;
|
||||
}
|
||||
if(CONFIG.name && CONFIG.name.trim() !== '') {
|
||||
filename = filename + '_' + CONFIG.name.trim().replace(' ', '_');
|
||||
}
|
||||
}
|
||||
|
||||
filename = filename + '_' + date.getFullYear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue