diff --git a/.travis.yml b/.travis.yml index 8d52ebd..fbbfa57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/src/main.rs b/src/main.rs index 782c663..232fa96 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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")); @@ -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()) }