File tree Expand file tree Collapse file tree 7 files changed +120
-1
lines changed Expand file tree Collapse file tree 7 files changed +120
-1
lines changed Original file line number Diff line number Diff line change
1
+ // This file is part of uno-r4-wifi-fwuploader-plugin.
2
+ //
3
+ // Copyright (c) 2023 Arduino LLC. All right reserved.
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published
7
+ // by the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
1
18
package certificate
2
19
3
20
import (
Original file line number Diff line number Diff line change
1
+ // This file is part of uno-r4-wifi-fwuploader-plugin.
2
+ //
3
+ // Copyright (c) 2023 Arduino LLC. All right reserved.
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published
7
+ // by the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
1
18
package certificate
2
19
3
20
import (
Original file line number Diff line number Diff line change
1
+ // This file is part of uno-r4-wifi-fwuploader-plugin.
2
+ //
3
+ // Copyright (c) 2023 Arduino LLC. All right reserved.
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published
7
+ // by the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
1
18
package main
2
19
3
20
import (
@@ -21,7 +38,7 @@ func rebootUsingHID() error {
21
38
b [0 ] = 0
22
39
b [1 ] = 0xAA
23
40
if _ , err := d .SendFeatureReport (b ); err != nil {
24
- return fmt .Errorf ("send HID command: %v" , err )
41
+ return fmt .Errorf ("send HID command: %v" , err )
25
42
}
26
43
27
44
return nil
Original file line number Diff line number Diff line change
1
+ // This file is part of uno-r4-wifi-fwuploader-plugin.
2
+ //
3
+ // Copyright (c) 2023 Arduino LLC. All right reserved.
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published
7
+ // by the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
1
18
package main
2
19
3
20
import (
Original file line number Diff line number Diff line change
1
+ // This file is part of uno-r4-wifi-fwuploader-plugin.
2
+ //
3
+ // Copyright (c) 2023 Arduino LLC. All right reserved.
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published
7
+ // by the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
1
18
package serial
2
19
3
20
import (
Original file line number Diff line number Diff line change
1
+ // This file is part of uno-r4-wifi-fwuploader-plugin.
2
+ //
3
+ // Copyright (c) 2023 Arduino LLC. All right reserved.
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published
7
+ // by the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
1
18
// Those function are token from https://github.com/arduino/arduino-cli/blob/master/arduino/serialutils/serialutils.go
2
19
// that's because we don't have the `tr` here and importing the serialutils from the cli will lead to a panic
3
20
package utils
Original file line number Diff line number Diff line change
1
+ // This file is part of uno-r4-wifi-fwuploader-plugin.
2
+ //
3
+ // Copyright (c) 2023 Arduino LLC. All right reserved.
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published
7
+ // by the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
1
18
// To genereate the binaries run:
2
19
// arduino-cli compile -e --profile unor4wifi
3
20
You can’t perform that action at this time.
0 commit comments