linter fix

This commit is contained in:
Kyle Brown 2020-10-15 15:40:05 -07:00
parent 1b730cacf3
commit 015e0cdfd7
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.standard.hid import HIDService
from kmk.hid import HID_REPORT_SIZES, AbstractHID
from kmk.hid import AbstractHID
BLE_APPEARANCE_HID_KEYBOARD = 961
# Hardcoded in CPy
@ -29,8 +29,8 @@ class BLEHID(AbstractHID):
@property
def devices(self):
"""Search through the provided list of devices to find the ones with the
send_report attribute."""
'''Search through the provided list of devices to find the ones with the
send_report attribute.'''
if not self.ble.connected:
return []
@ -48,7 +48,7 @@ class BLEHID(AbstractHID):
# selected 1 position in the resulted array.
# If no LESC is in place, Chuck can sniff the keystrokes anyway
for device in self.hid.devices:
if hasattr(device, "send_report"):
if hasattr(device, 'send_report'):
result.append(device)
return result

View File

@ -21,7 +21,7 @@ FN = KC.MO(1)
keyboard.debug_enabled = True
keyboard.col_pins = (mcp.get_pin(8), mcp.get_pin(9), mcp.get_pin(10), mcp.get_pin(11), mcp.get_pin(12), mcp.get_pin(13), mcp.get_pin(14), mcp.get_pin(15), mcp.get_pin(4), mcp.get_pin(5), mcp.get_pin(6), mcp.get_pin(7), mcp.get_pin(3), mcp.get_pin(2), mcp.get_pin(1), )
keyboard.col_pins = (mcp.get_pin(8), mcp.get_pin(9), mcp.get_pin(10), mcp.get_pin(11), mcp.get_pin(12), mcp.get_pin(13), mcp.get_pin(14), mcp.get_pin(15), mcp.get_pin(4), mcp.get_pin(5), mcp.get_pin(6), mcp.get_pin(7), mcp.get_pin(3), mcp.get_pin(2), mcp.get_pin(1))
keyboard.row_pins = (board.D7, board.D6, board.D5, board.D3, board.D2)
keyboard.diode_orientation = DiodeOrientation.COLUMNS