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

66 commits

Author SHA1 Message Date
Míguel Ángel Mulero Martínez
ff83600a43
Refactor port handler (#3984)
* Refactor port handler and fix reconnect

* Fix as per review

* Don't auto-connect for virtual or manual

* Fix auto-connect switch state

* Move auto-connect title to the parent div

The checkbox is "hidden" under the switchary
library, so move to the parent to be able to show
it.

* Select active port when request permission port exists before

* Fix retun value for webserial requestPemission
2024-05-30 20:10:09 +02:00
Mark Haslinghuis
a6e3761c26
Fix reboot (#3986)
* Fix reboot

* Remove runonce and add callback for cli

* Couldn't resist

* Refactoring

* Forgot callback

* deviceReady

* Prevent callback being called twice
2024-05-28 17:36:13 +02:00
Míguel Ángel Mulero Martínez
d465f264be
Remove mdns feature (#3979)
It seems is not available under PWA, so better remove it.
2024-05-24 17:42:31 +10:00
Míguel Ángel Mulero Martínez
3fe659e9a4
Use the "show manual" preference in the porthandler to show or hide the option (#3968) 2024-05-23 17:10:49 +02:00
Mark Haslinghuis
3b088d7416
Auto-detect for PWA (#3971)
* Auto-detect for PWA

* Fix sonar
2024-05-20 16:52:28 +02:00
Míguel Ángel Mulero Martínez
4fea844edb
Add auto-connect checkbox again (#3970) 2024-05-20 16:02:33 +02:00
Míguel Ángel Mulero Martínez
21a3390fa1
Fix lint issues (#3972) 2024-05-18 10:21:30 +10:00
Míguel Ángel Mulero Martínez
fce0c8305b
Make port_handler work with PWA (#3958)
* Make port_handler work with PWA

* Modify the port_handler more the Vue way

* Fixes after review

* Fix request permission option not being deselected

* Hide baud selection in port picker if virtual port

* Added port override option for manual

* Fix virtual port state when loading the page

* Fix request permission adds the same device several times

* Fix automatic selection of device under Linux
2024-05-17 10:24:44 +02:00
Mark Haslinghuis
b91698d0f4
Add DFU support for PWA (#3949)
* Add webusbdfu support for PWA

* Cleanup

* Cleanup more

* protect flash memory

* Remove self

* Fix flashing for F4 and F7
2024-05-16 00:23:01 +02:00
Mark Haslinghuis
6105210e9e
Add manual connection option (#3703)
* Hide manual connection and refactor port_handler

* Rebased
2024-05-08 20:01:44 +02:00
Mark Haslinghuis
776a1f5dfc
Fix reset options (#3932)
* Fix reset options

* Use deep copy
2024-05-06 22:45:32 +02:00
Mark Haslinghuis
71dad13bc1
Fix AT32 detection (#3935) 2024-05-06 16:53:11 +02:00
Tomas Chmelevskij
18eb8dd1b2
Feat/web virtual mode (#3882)
* feat: add virtual mode on web

* feat: only show msp virtual version on virtual mode selection

* feat: update port selection to update the options
2024-04-28 19:51:41 +02:00
Mark Haslinghuis
72429ebcd0
Fix port picker trigger event (#3781) 2024-02-04 12:00:34 +01:00
Mark Haslinghuis
97a1b62460
Prevent detection when busy (#3745)
* Fix serial

* Reset button when loading new firmware

* Some cleanup
2024-01-12 18:46:00 +01:00
Tomas Chmelevskij
5e5aa4f980
fix: presets styling for web (#3585)
* fix: presets styling for web

* feat: add `isWeb` helper
2023-09-18 22:35:02 +02:00
Chaos-fpga
c111129a07
Add APM32 DFU Bootloader to USB Devices' filters (#3563)
Update port_handler.js
2023-09-05 20:08:04 +02:00
Tomas Chmelevskij
ff4b62d7e2
Feat/vite build (#3292)
feat: vite based web build

* configure vitejs build
* add web serial option
2023-08-31 20:01:06 +02:00
Tomas Chmelevskij
40c243fe47
feat: use jquery package (#3540) 2023-08-17 01:13:03 +02:00
Mark Haslinghuis
5621658c97
Backup config on flash (#3459)
* Backup config on flash
* add dialog
* Fix connection issue when flashing for second time
* Optimize connection flow
2023-06-14 09:12:53 +10:00
Mark Haslinghuis
ef40e88e21
Move mDNS initialization (#3412) 2023-04-10 01:55:24 +02:00
Mark Haslinghuis
ad5b94cd2a
Fix mDNS browser (#3337)
Fix MSDN browser
2023-02-15 19:34:04 +01:00
EMSR
da3596bb06
Artery AT32F435/7 DFU and VCP support (#3259)
* Add Artery AT32F435/7 Virtual COM Port support

* ADD ARTRY AT32 DFU support

* remove wrong comment
2023-01-29 02:18:26 +01:00
Tomas Chmelevskij
771b840095
feat: use modules instead of global bindings (#3245) 2023-01-15 23:40:23 +01:00
Tomas Chmelevskij
c086395def
Refactor msp to modules (#3214)
* feat: refactor everything to modules

* fix: a lot of circular deps fixes

* feat: use vitest instead of karma
2023-01-14 22:11:37 +01:00
ASDosjani
88f5c7d863
Fix elrs connection (#3095)
fix elrs connection

arrange mdns to class
2022-12-02 04:59:48 +01:00
J Blackman
a49a6b98ba
Merge pull request #3027 from ASDosjani/port_update
Update port selection after initialization
2022-10-18 07:36:30 +11:00
ASDosjani
614eb5d957 Fix port selection 2022-10-16 20:31:24 +02:00
ASDosjani
b691740d55 Update port selection after initialization 2022-10-16 19:55:22 +02:00
Eike Ahmels
777f2b6383 removed helper.js, fixed bonjour calls 2022-09-09 15:20:54 +02:00
Eike Ahmels
4b47dab653 scanning for elrs network devices with crsf msp frame capability
only setup port and connect if its valid and ready

change mdsn detection and made remove ports working for tcp ports

used the bonjour package and made it event based

removed unused constant

chore: code quality

fix self reference for mdns handler functions

adding port removal on not reachable

fix tcpcheck for resolved addresses

fixing mdns and polling

fixed mdns browser init (thanks to CapnBry), events not getting registered before the discovery starts

tcp polling was to fast and now doesnt check if the gui is connected to reduce ESP stress.

chore: remove commented code

added mdns requery interval

added andoird zeroconf for mdns discovery

fixed mobile detection and fixed squash/merge errors

fixing yarn install error and code smells

fixes cordova connect
2022-08-31 08:44:35 +02:00
Mark Haslinghuis
503e129fdb Fix PortHandler 2022-05-27 03:36:42 +02:00
Mark Haslinghuis
f41e135333 Migrate chrome storage API to window.localStorage
Add remove function

Remove callback from set and remove

Rebased

Rebased
2022-04-22 01:08:48 +02:00
Mark Haslinghuis
f8371afca2 Make connection timeout dynamic 2022-02-28 15:51:14 +01:00
Mark Haslinghuis
bad27d3d15 Make virtual mode an option using msp backup and restore 2022-01-10 14:25:01 +01:00
Mark Haslinghuis
3562ed9d3a
Fix Port Detection using VID/PID 2021-12-03 00:36:49 +01:00
J Blackman
3db052fda4
Auto merged - #2524 at Sun, 01 Aug 2021 03:17:09 GMT
Detect board in firmware_flasher patch
2021-08-01 13:17:10 +10:00
Mark Haslinghuis
c0cda1f735
Detect board in firmware_flasher patch 2021-07-28 03:34:09 +02:00
Mark Haslinghuis
1b26bb5dcc
Adjust Modes Name CSS min-width 2021-07-25 02:14:53 +02:00
J Blackman
1d296d5af4
Auto merged - #2475 at Sat, 26 Jun 2021 00:51:14 GMT
Make connection timeout user-configurable
2021-06-26 10:51:15 +10:00
Mark Haslinghuis
7af9fb28a9 Verify board from firmware before flashing 2021-06-20 03:00:50 +02:00
Mark Haslinghuis
3b90d3d520 Change Auto-Connect timeout 2021-06-03 18:59:07 +02:00
Mark Haslinghuis
91e06be19f Fix Port Dropdown Width 2021-02-24 20:32:20 +01:00
Mark Haslinghuis
6f21db5a06 Check for legacy devices 2021-02-08 04:53:07 +01:00
visdauas
030a75a89e Added Virtual Mode 2020-12-28 17:24:34 +01:00
Asizon
0a98eee4b3 Reset when no flashing,remove reset when erase chip is checked 2020-12-13 12:46:44 +01:00
Asizon
1647ca6ec5 Improving hardwareId behavior
Fix indendation

Add css changes

Change hiden to reset data aproach

Add semicolons
2020-12-13 11:24:36 +01:00
Michael Keller
317f937fd5
Merge pull request #2266 from Asizon/hide_hardwareid 2020-12-08 13:04:44 +01:00
Asizon
883bb9c53f Remove hardwareId when checks for usb devices 2020-12-08 11:59:06 +01:00
Mark Haslinghuis
545ec324c0 Fix tcp boot 2020-11-17 05:20:49 +01:00