From a290dccb6737e26f5c1cd10fcf2ffeba7c8bc16d Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Tue, 27 Feb 2024 19:53:28 +0100 Subject: [PATCH] Variable korrekt deklarieren --- foobaz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foobaz.py b/foobaz.py index 01a6323..64f02d4 100644 --- a/foobaz.py +++ b/foobaz.py @@ -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}" def main(args): - global dmx + global dmx, room 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")