From 56c1d0b38702372b8cf35c6bf3ec3b0e3b00b62c Mon Sep 17 00:00:00 2001 From: Henry Bucklow Date: Sun, 25 Jul 2021 10:12:16 +0100 Subject: Allow oled_mount_type to be "NONE" as well as None. This makes it possible to remove the OLED mount from the .json file. --- src/dactyl_manuform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dactyl_manuform.py b/src/dactyl_manuform.py index 255372d..283bbab 100644 --- a/src/dactyl_manuform.py +++ b/src/dactyl_manuform.py @@ -69,7 +69,7 @@ def debugprint(info): print(info) -if oled_mount_type is not None: +if oled_mount_type is not None and oled_mount_type != "NONE": for item in oled_configurations[oled_mount_type]: locals()[item] = oled_configurations[oled_mount_type][item] @@ -104,7 +104,7 @@ mount_height = keyswitch_height + 2 * plate_rim mount_thickness = plate_thickness double_plate_height = (sa_double_length - mount_height) / 3 -if oled_mount_type is not None: +if oled_mount_type is not None and oled_mount_type != "NONE": left_wall_x_offset = oled_left_wall_x_offset_override left_wall_z_offset = oled_left_wall_z_offset_override -- cgit v1.2.3