Compare commits

..

2 Commits

Author SHA1 Message Date
Ghoul
f4dc4dfea9 Merge branch 'main' into 'devel'
Draft: Add custom image and gif support for G835L

See merge request asus-linux/asusctl!249
2026-01-22 19:09:27 +00:00
Ghoul
1238e090a5 chore: code clean up and remove planning comments 2026-01-23 00:06:53 +05:00

View File

@@ -42,9 +42,23 @@ pub struct AniMatrix {
impl AniMatrix { impl AniMatrix {
pub fn new(model: AnimeType) -> Self { pub fn new(model: AnimeType) -> Self {
let led_shape = LedShape { let led_shape = match model {
vertical: 2, // TODO: Verify how this reacts on G635L and G835L
horizontal: 5, // These are all doing the same thing. Can be simplified
AnimeType::GA401 => LedShape {
vertical: 2,
horizontal: 5,
},
AnimeType::GA402 | AnimeType::G635L | AnimeType::G835L | AnimeType::Unsupported => {
LedShape {
vertical: 2,
horizontal: 5,
}
}
AnimeType::GU604 => LedShape {
vertical: 2,
horizontal: 5,
},
}; };
// Do a hard mapping of each (derived from wireshardk captures) // Do a hard mapping of each (derived from wireshardk captures)