-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
* origin/main: Bump serde from 1.0.213 to 1.0.214 remove sample period constant from py py: fix rate Refactor compile action job to phase out deprecated dependencies Upload artifacts after objcopy
- Loading branch information
Showing
4 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,16 +66,23 @@ jobs: | |
features: '' | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
target: thumbv7em-none-eabihf | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
targets: thumbv7em-none-eabihf | ||
components: llvm-tools-preview | ||
- run: cargo build --release --features "${{ matrix.features }}" | ||
- name: Extract Stable Binary Using cargo-binutils | ||
if: matrix.toolchain == 'stable' && github.ref == 'refs/heads/main' | ||
run: | | ||
cargo install cargo-binutils | ||
cargo objcopy --release --bin thermostat-eem -- -O binary thermostat-eem.bin | ||
- name: Upload Artifacts | ||
if: matrix.toolchain == 'stable' && github.ref == 'refs/heads/main' | ||
uses: actions/[email protected] | ||
with: | ||
command: build | ||
args: --release --features "${{ matrix.features }}" | ||
path: thermostat-eem.bin | ||
|
||
doc: | ||
runs-on: ubuntu-latest | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
#!/usr/bin/python3 | ||
"""Thermostat EEM utilities""" | ||
|
||
# Sample period in seconds for all channels. | ||
SAMPLE_PERIOD = 1 / 503.5 # ADC ODR 1007 split between two channels per ADC |