1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Move some code of portOverride from serial_backend to vue (#3992)

This commit is contained in:
Míguel Ángel Mulero Martínez 2024-05-31 21:15:19 +02:00 committed by GitHub
parent d0599ae455
commit 324bec63a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 18 deletions

View file

@ -54,17 +54,6 @@ function disconnectHandler(event) {
export function initializeSerialBackend() {
// TODO move to Vue
$('#port-override').change(function () {
setConfig({'portOverride': $('#port-override').val()});
});
// TODO move to Vue
const data = getConfig('portOverride');
if (data.portOverride) {
$('#port-override').val(data.portOverride);
}
$("div.connect_controls a.connect").on('click', connectDisconnect);
EventBus.$on('port-handler:auto-select-serial-device', function(device) {