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

Add save/load buttons for the VTX Table

This commit is contained in:
Miguel Angel Mulero Martinez 2019-09-02 11:05:50 +02:00
parent f547d84eef
commit ca6b1f4e0e
4 changed files with 286 additions and 53 deletions

View file

@ -2054,8 +2054,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++) {