Skip to content

Commit

Permalink
Update attiny and RP2040 firmware version
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Jan 31, 2024
1 parent ba6dd19 commit 90fe0ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ script:
- if [ -n "$TRAVIS_TAG" ]; then sed -i "s/version = \"0.0.0-snapshot\"/version = \"${TRAVIS_TAG#v}\"/g" Cargo.toml; fi
- cargo install cargo-deb
- cargo build --release --target=armv7-unknown-linux-musleabihf
- wget -O _releases/tc2-firmware https://github.com/TheCacophonyProject/tc2-firmware/releases/download/v0.1.1/tc2-firmware
- wget -O _releases/tc2-firmware https://github.com/TheCacophonyProject/tc2-firmware/releases/download/v0.1.2/tc2-firmware
- cargo deb --target=armv7-unknown-linux-musleabihf --output tc2-agent_${TRAVIS_TAG#v}_armhf.deb

deploy:
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use rustbus::{get_system_bus_path, DuplexConn};
use simplelog::*;

const EXPECTED_RP2040_FIRMWARE_VERSION: u32 = 9;
const EXPECTED_ATTINY_FIRMWARE_VERSION: u8 = 11;
const EXPECTED_ATTINY_FIRMWARE_VERSION: u8 = 12;
const SEGMENT_LENGTH: usize = 9760;
const FRAME_LENGTH: usize = SEGMENT_LENGTH * 4;
pub type Frame = [u8; FRAME_LENGTH];
Expand Down

0 comments on commit 90fe0ec

Please sign in to comment.