Refactor into __main__ block
This commit is contained in:
parent
6f531cf073
commit
ad97fc7fa9
1 changed files with 943 additions and 943 deletions
|
@ -40,7 +40,7 @@ import smbus
|
|||
#
|
||||
# <order> selects which Cluster CTRL devices matches that <order> number
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
args = len(sys.argv)
|
||||
|
||||
if ( args == 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help' or sys.argv[1] == '-h' or sys.argv[1] == '/?' ):
|
||||
|
|
Loading…
Reference in a new issue