Skip to content

Commit

Permalink
Merge pull request #34 from TheCacophonyProject/up-firmware
Browse files Browse the repository at this point in the history
up firmware, always reprogram rp2040 on update
  • Loading branch information
gferraro authored Jan 16, 2025
2 parents b86e9af + ec90e43 commit 00d934b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-22.04

env:
RP2040_FIRMWARE_VERSION: 0.2.17
RP2040_FIRMWARE_VERSION: 0.2.18

steps:
- name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions _releases/scripts/postinst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
systemctl daemon-reload
touch /etc/cacophony/program_rp2040
systemctl enable tc2-agent.service
systemctl restart tc2-agent.service
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ use crate::recording_state::RecordingState;
const AUDIO_SHEBANG: u16 = 1;

const EXPECTED_RP2040_FIRMWARE_HASH: &str = include_str!("../_releases/tc2-firmware.sha256");
const EXPECTED_RP2040_FIRMWARE_VERSION: u32 = 14;
const EXPECTED_RP2040_FIRMWARE_VERSION: u32 = 15;
const EXPECTED_ATTINY_FIRMWARE_VERSION: u8 = 1;

const SEGMENT_LENGTH: usize = 9760;
Expand Down

0 comments on commit 00d934b

Please sign in to comment.