1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +03:00

Merge pull request #1612 from McGiverGim/vtx_load_save

Add save/load buttons for the VTX Table
This commit is contained in:
Michael Keller 2019-09-04 23:30:16 +12:00 committed by GitHub
commit 7f1934b946
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 286 additions and 53 deletions

View file

@ -2102,8 +2102,12 @@ MspHelper.prototype.crunch = function(code) {
buffer.push8(VTXTABLE_BAND.vtxtable_band_name.charCodeAt(i));
}
buffer.push8(VTXTABLE_BAND.vtxtable_band_letter.charCodeAt(0))
.push8(VTXTABLE_BAND.vtxtable_band_is_factory_band ? 1 : 0);
if (VTXTABLE_BAND.vtxtable_band_letter != '') {
buffer.push8(VTXTABLE_BAND.vtxtable_band_letter.charCodeAt(0))
} else {
buffer.push8(' '.charCodeAt(0));
}
buffer.push8(VTXTABLE_BAND.vtxtable_band_is_factory_band ? 1 : 0);
buffer.push8(VTXTABLE_BAND.vtxtable_band_frequencies.length);
for (let i = 0; i < VTXTABLE_BAND.vtxtable_band_frequencies.length; i++) {