Skip to content

Compile R4 provisioning scripts and binaries #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/sync-binaries-task.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions command/device/board.go
Original file line number Diff line number Diff line change
@@ -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",
1 change: 1 addition & 0 deletions firmware/generator.py
Original file line number Diff line number Diff line change
@@ -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"},
]
4 changes: 2 additions & 2 deletions internal/binary/index.go
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
Copy link

@chm90 chm90 Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this change related to this commit? 🤔 Or is it a change that has been added by mistake to this commit?


"compress/gzip"

@@ -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)
}