File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ def _remove_keycode_from_report(self, keycode: int) -> None:
162162 @property
163163 def led_status (self ) -> bytes :
164164 """Returns the last received report"""
165- return self ._keyboard_device .last_received_report
165+ # get_last_received_report() returns None when nothing was received
166+ return self ._keyboard_device .get_last_received_report () or b"\x00 "
166167
167168 def led_on (self , led_code : int ) -> bool :
168169 """Returns whether an LED is on based on the led code
@@ -174,7 +175,7 @@ def led_on(self, led_code: int) -> bool:
174175 from adafruit_hid.keycode import Keycode
175176 import time
176177
177- # Initialize Keybaord
178+ # Initialize Keyboard
178179 kbd = Keyboard(usb_hid.devices)
179180
180181 # Press and release CapsLock.
You can’t perform that action at this time.
0 commit comments