Skip to content

Commit

Permalink
add frame acquire
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed May 22, 2024
1 parent f60aa53 commit 5a095ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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.4/tc2-firmware
- wget -O _releases/tc2-firmware https://github.com/TheCacophonyProject/tc2-firmware/releases/download/v0.1.6/tc2-firmware
- cargo deb --target=armv7-unknown-linux-musleabihf --output tc2-agent_${TRAVIS_TAG#v}_armhf.deb

deploy:
Expand Down
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,8 @@ fn main() {
info!("Telling rp2040 to take test recording and restarting");
}
}
}else{
}
if !frame_acquire{
let date = chrono::Local::now();
if rp2040_needs_reset {
error!("3) Requesting reset of rp2040 due to config change, {}", date.format("%Y-%m-%d--%H:%M:%S"));
Expand Down Expand Up @@ -1080,7 +1081,7 @@ fn main() {
file.extend_from_slice(&chunk);
let shebang = u8_slice_as_u16_slice(&file[0..2]);
if shebang[0] == AUDIO_SHEBANG{
save_audio_file_to_disk(file, device_config.output_dir());
save_audio_file_to_disk(file, device_config.output_dir());
}else{
save_cptv_file_to_disk(file, device_config.output_dir())
}
Expand Down

0 comments on commit 5a095ac

Please sign in to comment.