From 2201431431ebfb68860d21834037306db60054ef Mon Sep 17 00:00:00 2001 From: gferraro Date: Mon, 19 Aug 2024 16:52:33 +1200 Subject: [PATCH] add new events and upfirmware --- .travis.yml | 2 +- src/event_logger.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c9247b5..be62a9e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ addons: env: global: - - RP2040_FIRMWARE_VERSION=0.2.9 + - RP2040_FIRMWARE_VERSION=0.2.13 before_script: - rustup target add aarch64-unknown-linux-musl diff --git a/src/event_logger.rs b/src/event_logger.rs index f153309..0177c9e 100644 --- a/src/event_logger.rs +++ b/src/event_logger.rs @@ -22,6 +22,8 @@ pub enum LoggerEventKind { RtcCommError, AttinyCommError, Rp2040MissedAudioAlarm(u64), + AudioRecordingFailed, + ErasePartialOrCorruptRecording, } impl Into for LoggerEventKind { @@ -48,6 +50,8 @@ impl Into for LoggerEventKind { RtcCommError => 18, AttinyCommError => 19, Rp2040MissedAudioAlarm(_) => 20, + AudioRecordingFailed => 21, + ErasePartialOrCorruptRecording => 22, } } } @@ -78,6 +82,8 @@ impl TryFrom for LoggerEventKind { 18 => Ok(RtcCommError), 19 => Ok(AttinyCommError), 20 => Ok(Rp2040MissedAudioAlarm(0)), + 21 => Ok(AudioRecordingFailed), + 22 => Ok(ErasePartialOrCorruptRecording), _ => Err(()), } }