diff options
author | Henry Bucklow <patches@elsie.org.uk> | 2021-07-25 10:12:16 +0100 |
---|---|---|
committer | Henry Bucklow <patches@elsie.org.uk> | 2021-07-25 10:12:16 +0100 |
commit | 56c1d0b38702372b8cf35c6bf3ec3b0e3b00b62c (patch) | |
tree | 02c4f90e7c25736c44debac72b961981f6a8a573 /src | |
parent | a8dfa64eb72e8d1ba216142fade8ca89effe326f (diff) |
Allow oled_mount_type to be "NONE" as well as None.
This makes it possible to remove the OLED mount from the .json file.
Diffstat (limited to 'src')
-rw-r--r-- | src/dactyl_manuform.py | 4 |
1 files 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 |