Skip to content

Commit

Permalink
Merge pull request #20 from TheCacophonyProject/offload-last
Browse files Browse the repository at this point in the history
add new events and upfirmware
  • Loading branch information
gferraro authored Aug 19, 2024
2 parents 536b49e + 2201431 commit 1a57158
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/event_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ pub enum LoggerEventKind {
RtcCommError,
AttinyCommError,
Rp2040MissedAudioAlarm(u64),
AudioRecordingFailed,
ErasePartialOrCorruptRecording,
}

impl Into<u16> for LoggerEventKind {
Expand All @@ -48,6 +50,8 @@ impl Into<u16> for LoggerEventKind {
RtcCommError => 18,
AttinyCommError => 19,
Rp2040MissedAudioAlarm(_) => 20,
AudioRecordingFailed => 21,
ErasePartialOrCorruptRecording => 22,
}
}
}
Expand Down Expand Up @@ -78,6 +82,8 @@ impl TryFrom<u16> for LoggerEventKind {
18 => Ok(RtcCommError),
19 => Ok(AttinyCommError),
20 => Ok(Rp2040MissedAudioAlarm(0)),
21 => Ok(AudioRecordingFailed),
22 => Ok(ErasePartialOrCorruptRecording),
_ => Err(()),
}
}
Expand Down

0 comments on commit 1a57158

Please sign in to comment.