Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mecode/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,11 +1064,11 @@ def _update_current_position(self, mode='auto', x=None, y=None, z=None,
if mode == 'auto':
mode = 'relative' if self.is_relative else 'absolute'

if self.x_axis is not 'X' and x is not None:
if self.x_axis != 'X' and x is not None:
kwargs[self.x_axis] = x
if self.y_axis is not 'Y' and y is not None:
if self.y_axis != 'Y' and y is not None:
kwargs[self.y_axis] = y
if self.z_axis is not 'Z' and z is not None:
if self.z_axis != 'Z' and z is not None:
kwargs[self.z_axis] = z

if mode == 'relative':
Expand Down