Skip to content

Commit

Permalink
Compile R4 provisioning scripts and binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
rjtokenring committed Aug 30, 2024
1 parent ea7cfdc commit 0dd62f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sync-binaries-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
arduino-cli core install arduino:mbed_nicla
arduino-cli core install arduino:mbed_opta
arduino-cli core install arduino:mbed_giga
arduino-cli core install arduino:renesas_uno
arduino-cli lib install ArduinoIotCloud
arduino-cli lib install ArduinoECCX08
arduino-cli lib install ArduinoSTL
Expand Down
1 change: 1 addition & 0 deletions command/device/board.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var (
"arduino:samd:mkrnb1500",
"arduino:mbed_opta:opta",
"arduino:mbed_giga:giga",
"arduino:renesas_uno:unor4wifi",
}
loraFQBN = []string{
"arduino:samd:mkrwan1310",
Expand Down
1 change: 1 addition & 0 deletions firmware/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
{"type": "crypto", "ext": ".bin", "fqbn": "arduino:samd:mkrnb1500"},
{"type": "crypto", "ext": ".bin", "fqbn": "arduino:mbed_opta:opta"},
{"type": "crypto", "ext": ".bin", "fqbn": "arduino:mbed_giga:giga"},
{"type": "crypto", "ext": ".bin", "fqbn": "arduino:renesas_uno:unor4wifi"},
{"type": "lora", "ext": ".bin", "fqbn": "arduino:samd:mkrwan1300"},
{"type": "lora", "ext": ".bin", "fqbn": "arduino:samd:mkrwan1310"},
]
Expand Down
4 changes: 2 additions & 2 deletions internal/binary/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"

"compress/gzip"

Expand Down Expand Up @@ -67,7 +67,7 @@ func LoadIndex(ctx context.Context) (*Index, error) {
if err != nil {
return nil, fmt.Errorf("cannot decompress index: %w", err)
}
index, err := ioutil.ReadAll(indexReader)
index, err := io.ReadAll(indexReader)
if err != nil {
return nil, fmt.Errorf("cannot read downloaded index: %w", err)
}
Expand Down

0 comments on commit 0dd62f4

Please sign in to comment.