mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Anime: Better prevent await blocking. Prevent Slash taking over anime USB dev
This commit is contained in:
@@ -13,6 +13,7 @@ use crate::error::SlashError;
|
||||
pub enum SlashType {
|
||||
GA403,
|
||||
Unknown,
|
||||
Unsupported,
|
||||
}
|
||||
|
||||
impl FromStr for SlashType {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user