Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ivalaginja committed May 16, 2024
1 parent 6734cb1 commit 075555c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def open(self):

# Submit motor starting position to current_position data stream
self.get_current_position()

self.make_command('home', self.home)

def main(self):
Expand Down Expand Up @@ -153,9 +153,9 @@ def set_current_position(self, position):
new_pos_real = c_double(position) # in real units
new_pos_dev = c_int()
self.lib.CC_GetDeviceUnitFromRealValue(self.serial_number,
new_pos_real,
byref(new_pos_dev),
0)
new_pos_real,
byref(new_pos_dev),
0)
self.lib.CC_MoveToPosition(self.serial_number, new_pos_dev)
else:
self.log.warning('Motor not moving since commanded position is outside of configured range.')
Expand Down

0 comments on commit 075555c

Please sign in to comment.