mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 05:45:25 +03:00
Verify board from firmware before flashing
This commit is contained in:
parent
2273b36fa3
commit
7af9fb28a9
6 changed files with 181 additions and 28 deletions
|
@ -18,6 +18,10 @@ 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