mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 06:15:13 +03:00
Feat/vite build (#3292)
feat: vite based web build * configure vitejs build * add web serial option
This commit is contained in:
parent
172cb0bee9
commit
ff4b62d7e2
15 changed files with 723 additions and 54 deletions
|
@ -6,6 +6,7 @@ import { gui_log } from "./gui_log";
|
|||
import inflection from "inflection";
|
||||
import PortHandler from "./port_handler";
|
||||
import { checkChromeRuntimeError } from "./utils/common";
|
||||
import { serialDevices } from './serial_devices';
|
||||
import $ from 'jquery';
|
||||
|
||||
const serial = {
|
||||
|
@ -23,14 +24,7 @@ const serial = {
|
|||
transmitting: false,
|
||||
outputBuffer: [],
|
||||
|
||||
serialDevices: [
|
||||
{'vendorId': 1027, 'productId': 24577}, // FT232R USB UART
|
||||
{'vendorId': 1155, 'productId': 22336}, // STM Electronics Virtual COM Port
|
||||
{'vendorId': 4292, 'productId': 60000}, // CP210x
|
||||
{'vendorId': 4292, 'productId': 60001}, // CP210x
|
||||
{'vendorId': 4292, 'productId': 60002}, // CP210x
|
||||
{'vendorId': 0x2e3c, 'productId': 0x5740}, // AT32 VCP
|
||||
],
|
||||
serialDevices,
|
||||
|
||||
connect: function (path, options, callback) {
|
||||
const self = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue