Skip to content

Commit c19ae40

Browse files
authored
Merge pull request #1590 from iNavFlight/MrD_Add-version-number-to-CLI-save-filename
Add version number to CLI save filename
2 parents 64f8115 + dac6ff3 commit c19ae40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ function generateFilename(prefix, suffix) {
4242

4343
if (CONFIG) {
4444
if (CONFIG.flightControllerIdentifier) {
45-
filename = CONFIG.flightControllerIdentifier + '_' + filename;
45+
filename = CONFIG.flightControllerIdentifier + '_' + CONFIG.flightControllerVersion + "_" + filename;
4646
}
47+
4748
if (CONFIG.name && CONFIG.name.trim() !== '') {
4849
filename = filename + '_' + CONFIG.name.trim().replace(' ', '_');
4950
}

0 commit comments

Comments
 (0)