summaryrefslogtreecommitdiff
path: root/hid/src/ps2/hid.h
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-08 23:06:23 +0300
committerMaxim Devaev <[email protected]>2022-07-08 23:06:23 +0300
commitc840ea73068f855e1ebbf738f8ae9e62dde05286 (patch)
tree017b0817c2710b435496839d14f945e7b7418573 /hid/src/ps2/hid.h
parente864aafcf7f9dea75582c1ebcbca5e8ac1a1ae26 (diff)
refactoring
Diffstat (limited to 'hid/src/ps2/hid.h')
-rw-r--r--hid/src/ps2/hid.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/hid/src/ps2/hid.h b/hid/src/ps2/hid.h
index db7247e4..6fce88b6 100644
--- a/hid/src/ps2/hid.h
+++ b/hid/src/ps2/hid.h
@@ -80,12 +80,12 @@ class Ps2Keyboard {
}
KeyboardLedsState getLeds() {
- KeyboardLedsState result;
-
periodic();
- result.caps = _leds & 0b00000100;
- result.scroll = _leds & 0b00000001;
- result.num = _leds & 0b00000010;
+ KeyboardLedsState result = {
+ .caps = _leds & 0b00000100,
+ .scroll = _leds & 0b00000001,
+ .num = _leds & 0b00000010,
+ };
return result;
}