mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Animatrix: Default to GA402 style if Unknown, use default-workspace.
Also rename daemon crates to the bin names they use to be less confusing. Signed-off-by: Luke D. Jones <luke@ljones.dev>
This commit is contained in:
@@ -140,9 +140,8 @@ impl AnimeDiagonal {
|
||||
pub fn into_data_buffer(&self, anime_type: AnimeType) -> Result<AnimeDataBuffer> {
|
||||
match anime_type {
|
||||
AnimeType::GA401 => self.to_ga401_packets(),
|
||||
AnimeType::GA402 => self.to_ga402_packets(),
|
||||
AnimeType::GU604 => self.to_gu604_packets(),
|
||||
AnimeType::Unknown => self.to_unknown_packets(),
|
||||
_ => self.to_ga402_packets(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -377,9 +376,4 @@ impl AnimeDiagonal {
|
||||
|
||||
AnimeDataBuffer::from_vec(crate::AnimeType::GA402, buf)
|
||||
}
|
||||
|
||||
fn to_unknown_packets(&self) -> Result<AnimeDataBuffer> {
|
||||
let buf = vec![0u8; AnimeType::Unknown.data_length()];
|
||||
AnimeDataBuffer::from_vec(crate::AnimeType::Unknown, buf)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user