Skip to content

Commit 56c1d0b

Browse files
author
Henry Bucklow
committed
Allow oled_mount_type to be "NONE" as well as None.
This makes it possible to remove the OLED mount from the .json file.
1 parent a8dfa64 commit 56c1d0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dactyl_manuform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def debugprint(info):
6969
print(info)
7070

7171

72-
if oled_mount_type is not None:
72+
if oled_mount_type is not None and oled_mount_type != "NONE":
7373
for item in oled_configurations[oled_mount_type]:
7474
locals()[item] = oled_configurations[oled_mount_type][item]
7575

@@ -104,7 +104,7 @@ def debugprint(info):
104104
mount_thickness = plate_thickness
105105
double_plate_height = (sa_double_length - mount_height) / 3
106106

107-
if oled_mount_type is not None:
107+
if oled_mount_type is not None and oled_mount_type != "NONE":
108108
left_wall_x_offset = oled_left_wall_x_offset_override
109109
left_wall_z_offset = oled_left_wall_z_offset_override
110110

0 commit comments

Comments
 (0)