Try to correct how laptop modes are handled

This commit is contained in:
Luke
2020-07-05 00:23:12 +12:00
parent 202fbe6800
commit a4c5b2754e
4 changed files with 13 additions and 2 deletions

View File

@@ -151,7 +151,8 @@ impl From<&AuraModes> for [u8; LED_MSG_LEN] {
AuraModes::Pulse(_) => msg[3] = 0x0a,
AuraModes::Comet(_) => msg[3] = 0x0b,
AuraModes::Flash(_) => msg[3] = 0x0c,
_ => panic!("Mode not convertable to array"),
AuraModes::MultiStatic(_) => msg[3] = 0x0d,
_ => print!("Mode not convertable to array: {}", <&str>::from(mode)),
}
match mode {