3939 }
4040)
4141
42- // board contains details of a physical arduino board
42+ // board contains details of a physical arduino board.
4343type board struct {
4444 fqbn string
4545 serial string
@@ -48,7 +48,7 @@ type board struct {
4848}
4949
5050// isCrypto checks if the board is a valid arduino board with a
51- // supported crypto-chip
51+ // supported crypto-chip.
5252func (b * board ) isCrypto () bool {
5353 for _ , f := range cryptoFQBN {
5454 if b .fqbn == f {
@@ -58,7 +58,7 @@ func (b *board) isCrypto() bool {
5858 return false
5959}
6060
61- // isCrypto checks if the board is a valid LoRa arduino board
61+ // isLora checks if the board is a valid LoRa arduino board.
6262func (b * board ) isLora () bool {
6363 for _ , f := range loraFQBN {
6464 if b .fqbn == f {
@@ -94,8 +94,8 @@ func boardFromPorts(ports []*rpc.DetectedPort, params *CreateParams) *board {
9494// - if the port parameter does not match the actual port address.
9595// - if the the detected port does not contain any board.
9696// It returns:
97- // true -> to skip the port
98- // false -> to keep the port
97+ // true -> to skip the port.
98+ // false -> to keep the port.
9999func portFilter (port * rpc.DetectedPort , params * CreateParams ) bool {
100100 if len (port .Boards ) == 0 {
101101 return true
0 commit comments