summaryrefslogtreecommitdiff
path: root/hid/src/ps2/hid.h
diff options
context:
space:
mode:
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;
}