Apply suggestions from code review

Co-authored-by: Scott Shawcroft <scott@tannewt.org>
This commit is contained in:
Jeff Epler 2023-04-05 11:57:06 -05:00 committed by GitHub
parent 3038b9a560
commit 9679aaa0be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ STATIC mp_obj_t keypad_shiftregisterkeys_make_new(const mp_obj_type_t *type, siz
#endif
}
#if CIRCUITPY_KEYPAD_KEYMATRIX
#if CIRCUITPY_KEYPAD_SHIFTREGISTERKEYS
//| def deinit(self) -> None:
//| """Stop scanning and release the pins."""
//| ...
@ -180,7 +180,7 @@ const mp_obj_type_t keypad_shiftregisterkeys_type = {
{ &mp_type_type },
.name = MP_QSTR_ShiftRegisterKeys,
.make_new = keypad_shiftregisterkeys_make_new,
#if CIRCUITPY_KEYPAD_KEYMATRIX
#if CIRCUITPY_KEYPAD_SHIFTREGISTERKEYS
.locals_dict = (mp_obj_t)&keypad_shiftregisterkeys_locals_dict,
#endif
};