small comment changes

This commit is contained in:
vextrixes committed 2026-07-04 10:02:42 +02:00
1 parent 24de4c6e2b
commit c234070707
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -113,8 +113,8 @@ pub enum KeymapKeys {
} }
impl KeymapKeys { impl KeymapKeys {
/// returns the id of a key /// returns the id of a key (where to put it in the keymap)
fn to_usize(&self) -> usize { pub fn to_usize(&self) -> usize {
match self { match self {
KeymapKeys::Escape => 1, KeymapKeys::Escape => 1,
KeymapKeys::F1 => 2, KeymapKeys::F1 => 2,
+2
View File
@@ -44,6 +44,8 @@ impl RGBController {
self.hid_wrapper.get_report()?; self.hid_wrapper.get_report()?;
} }
// Some random bytes (Random when using the offical app)
//idk how to replicate the randomness so i just use a constant
self.hid_wrapper.send_report(&[ self.hid_wrapper.send_report(&[
0x26, 0x36, 0xf2, 0x27, 0xb7, 0x2a, 0x56, 0x77, 0x98, 0x59, 0x9c, 0x6d, 0x9f, 0xc6, 0x26, 0x36, 0xf2, 0x27, 0xb7, 0x2a, 0x56, 0x77, 0x98, 0x59, 0x9c, 0x6d, 0x9f, 0xc6,
0xb, 0x44, 0xec, 0xa8, 0x47, 0x21, 0xe2, 0x65, 0x76, 0xa3, 0x70, 0xbe, 0xa2, 0xbb, 0xb, 0x44, 0xec, 0xa8, 0x47, 0x21, 0xe2, 0x65, 0x76, 0xa3, 0x70, 0xbe, 0xa2, 0xbb,