Variable korrekt deklarieren
This commit is contained in:
parent
a29cbd9683
commit
a290dccb67
|
@ -44,7 +44,7 @@ def rgb_to_hex(color: Tuple[int, int, int]) -> str:
|
||||||
return f"#{color[0]:02X}{color[1]:02X}{color[2]:02X}"
|
return f"#{color[0]:02X}{color[1]:02X}{color[2]:02X}"
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
global dmx
|
global dmx, room
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(prog='foobazdmx', description='Make the lights flicker.')
|
parser = argparse.ArgumentParser(prog='foobazdmx', description='Make the lights flicker.')
|
||||||
parser.add_argument('-a', '--artnet', type=str, required=True, default="127.0.0.1", help="Art-Net server")
|
parser.add_argument('-a', '--artnet', type=str, required=True, default="127.0.0.1", help="Art-Net server")
|
||||||
|
|
Loading…
Reference in a new issue