Refactor into __main__ block

This commit is contained in:
Reid 'arrdem' McKenzie 2021-10-11 21:26:06 -06:00
parent 6f531cf073
commit ad97fc7fa9

View file

@ -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] == '/?' ):