Skip to content

Commit

Permalink
Resolve issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYsLab committed May 11, 2024
1 parent 059e747 commit 59781b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ def set_pin_mode_spi(self, chip_select_list=None):
"""

if self.reported_features & PrivateConstants.SPI_FEATURE:
if type(chip_select_list) != list:
if type(chip_select_list) is not list:
if self.shutdown_on_exception:
self.shutdown()
raise RuntimeError('chip_select_list must be in the form of a list')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ async def set_pin_mode_spi(self, chip_select_list=None):
"""
if self.reported_features & PrivateConstants.SPI_FEATURE:

if type(chip_select_list) != list:
if type(chip_select_list) is not list:
if self.shutdown_on_exception:
await self.shutdown()
raise RuntimeError('chip_select_list must be in the form of a list')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ def set_pin_mode_spi(self, chip_select_list=None):
"""

if self.reported_features & PrivateConstants.SPI_FEATURE:
if type(chip_select_list) != list:
if type(chip_select_list) is not list:
if self.shutdown_on_exception:
self.shutdown()
raise RuntimeError('chip_select_list must be in the form of a list')
Expand Down Expand Up @@ -2449,6 +2449,7 @@ def _stepper_distance_to_go_report(self, report):
#
# cb(cb_list)
#

def _stepper_target_position_report(self, report):
return # for now
# """
Expand Down Expand Up @@ -2477,6 +2478,7 @@ def _stepper_target_position_report(self, report):
#
# cb(cb_list)
#

def _stepper_current_position_report(self, report):
return # for now
# """
Expand Down Expand Up @@ -2505,6 +2507,7 @@ def _stepper_current_position_report(self, report):
#
# cb(cb_list)
#

def _stepper_is_running_report(self, report):
return # for now
# """
Expand All @@ -2523,6 +2526,7 @@ def _stepper_is_running_report(self, report):
#
# cb(cb_list)
#

def _stepper_run_complete_report(self, report):
return # for now
# """
Expand Down

0 comments on commit 59781b8

Please sign in to comment.