mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 13:55:14 +03:00
Detect board in firmware_flasher patch
This commit is contained in:
parent
b1481ad2d9
commit
c0cda1f735
7 changed files with 107 additions and 29 deletions
|
@ -18,10 +18,7 @@ const serial = {
|
|||
connect: function (path, options, callback) {
|
||||
const self = this;
|
||||
const testUrl = path.match(/^tcp:\/\/([A-Za-z0-9\.-]+)(?:\:(\d+))?$/);
|
||||
if (self.connectionId || self.connected) {
|
||||
console.warn('We already connected. Aborting', self.connectionId, self.connected);
|
||||
return;
|
||||
}
|
||||
|
||||
if (testUrl) {
|
||||
self.connectTcp(testUrl[1], testUrl[2], options, callback);
|
||||
} else if (path === 'virtual') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue