Commit 5e37994
authored
Implementation of port discovery through Pluggable discovery (#900)
* Upgraded arduino-cli and replaced serialutils dep
* Refined ports filter
* Silenced linter warning
* Use pointers in ports lists
* Made spList a method of SpPortList
* Renamed SpPortList in SerialPortList
* Removed unneded initialization
* Inlined discovery loop
* Made updateSerialPortList a method of SerialPortList
* Made enumerationLock private
* Made portsLock (ex Mu) field private
* Inlined function call
* Made findPortByName a method of serialhub and moved near it
* Inlined call to 'write' and removed the function
* Removed unused ManufacutrerId and DeviceClass, renamed some fields
* Simplified enumerateSerialPorts function
* Removed redundant loggin of serial port list
* Removed seriallist.go and inlined function calls
* Make the singleton 'tools' a pointer
* Implemented serial-discovery
* Remove no more used 'Busy' field
* Fixed error message1 parent ef266fa commit 5e37994
File tree
16 files changed
+1027
-1042
lines changed- .licenses/arduino-create-agent/go/github.com
- arduino
- arduino-cli/arduino
- pluggable-discovery-protocol-handler
- leonelquinteros
- gotext
- upload
16 files changed
+1027
-1042
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
Lines changed: 0 additions & 720 deletions
This file was deleted.
Lines changed: 350 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 458 additions & 0 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
11 | 26 | | |
12 | 27 | | |
13 | 28 | | |
| |||
682 | 697 | | |
683 | 698 | | |
684 | 699 | | |
685 | | - | |
686 | | - | |
687 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
688 | 703 | | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
| 704 | + | |
| 705 | + | |
694 | 706 | | |
695 | 707 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
| 708 | + | |
701 | 709 | | |
Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 0 additions & 35 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
100 | | - | |
101 | | - | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
126 | | - | |
127 | | - | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| |||
0 commit comments