Anime: Better prevent await blocking. Prevent Slash taking over anime USB dev

This commit is contained in:
Luke D. Jones
2024-05-05 10:56:55 +12:00
parent 661ea8d3bf
commit 487d140bd5
9 changed files with 204 additions and 124 deletions

View File

@@ -13,6 +13,7 @@ use crate::error::SlashError;
pub enum SlashType {
GA403,
Unknown,
Unsupported,
}
impl FromStr for SlashType {

View File

@@ -35,8 +35,7 @@ pub fn get_slash_type() -> Result<SlashType, SlashError> {
if board_name.contains("GA403") {
return Ok(SlashType::GA403);
}
log::warn!("AniMe Slash device found but not yet supported, will default to a GA403 layout");
Ok(SlashType::Unknown)
Ok(SlashType::Unsupported)
}
/// Get the two device initialization packets. These are required for device