Skip to content

Commit e01ad9e

Browse files
authored
Merge pull request #13 from sffubs/master
Fixed stacktraces when using different thumb layouts, and when disabling OLED.
2 parents 0456cbb + bef669d commit e01ad9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dactyl_manuform.py

Lines changed: 4 additions & 4 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

@@ -108,7 +108,7 @@ def debugprint(info):
108108
else:
109109
double_plate_height = (.95*sa_double_length - mount_height) / 3
110110

111-
if oled_mount_type is not None:
111+
if oled_mount_type is not None and oled_mount_type != "NONE":
112112
left_wall_x_offset = oled_left_wall_x_offset_override
113113
left_wall_z_offset = oled_left_wall_z_offset_override
114114
left_wall_lower_y_offset = oled_left_wall_lower_y_offset
@@ -988,7 +988,7 @@ def mini_thumb_15x_layout(shape):
988988

989989
def mini_thumbcaps():
990990
t1 = mini_thumb_1x_layout(sa_cap(1))
991-
t15 = mini_thumb_15x_layout(rotate(sa_cap(1), pi / 2, [0, 0, 1]))
991+
t15 = mini_thumb_15x_layout(rotate(sa_cap(1), [0, 0, rad2deg(pi / 2)]))
992992
return t1.add(t15)
993993

994994

@@ -1225,7 +1225,7 @@ def carbonfet_thumb_15x_layout(shape, plate=True):
12251225

12261226
def carbonfet_thumbcaps():
12271227
t1 = carbonfet_thumb_1x_layout(sa_cap(1))
1228-
t15 = carbonfet_thumb_15x_layout(rotate(sa_cap(1.5), pi / 2, [0, 0, 1]))
1228+
t15 = carbonfet_thumb_15x_layout(rotate(sa_cap(1.5), [0, 0, rad2deg(pi / 2)]))
12291229
return t1.add(t15)
12301230

12311231

0 commit comments

Comments
 (0)