Skip to content

Commit

Permalink
Merge pull request #13 from sffubs/master
Browse files Browse the repository at this point in the history
Fixed stacktraces when using different thumb layouts, and when disabling OLED.
  • Loading branch information
joshreve authored Jul 26, 2021
2 parents 0456cbb + bef669d commit e01ad9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dactyl_manuform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -108,7 +108,7 @@ def debugprint(info):
else:
double_plate_height = (.95*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
left_wall_lower_y_offset = oled_left_wall_lower_y_offset
Expand Down Expand Up @@ -988,7 +988,7 @@ def mini_thumb_15x_layout(shape):

def mini_thumbcaps():
t1 = mini_thumb_1x_layout(sa_cap(1))
t15 = mini_thumb_15x_layout(rotate(sa_cap(1), pi / 2, [0, 0, 1]))
t15 = mini_thumb_15x_layout(rotate(sa_cap(1), [0, 0, rad2deg(pi / 2)]))
return t1.add(t15)


Expand Down Expand Up @@ -1225,7 +1225,7 @@ def carbonfet_thumb_15x_layout(shape, plate=True):

def carbonfet_thumbcaps():
t1 = carbonfet_thumb_1x_layout(sa_cap(1))
t15 = carbonfet_thumb_15x_layout(rotate(sa_cap(1.5), pi / 2, [0, 0, 1]))
t15 = carbonfet_thumb_15x_layout(rotate(sa_cap(1.5), [0, 0, rad2deg(pi / 2)]))
return t1.add(t15)


Expand Down

0 comments on commit e01ad9e

Please sign in to comment.