From 020c89fdc12ec896fd86eefc679b471672b0b89d Mon Sep 17 00:00:00 2001 From: grro Date: Thu, 5 Nov 2020 12:33:43 +0100 Subject: [PATCH] naming fixed --- pi_display_webthing/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pi_display_webthing/__init__.py b/pi_display_webthing/__init__.py index 4e22635..282ca98 100644 --- a/pi_display_webthing/__init__.py +++ b/pi_display_webthing/__init__.py @@ -44,9 +44,9 @@ def do_additional_listen_example_params(self): return "--name NAS --i2c_expander PCF8574 --i2c_address 0x27 --num_lines 2 --num_chars 16" def do_process_command(self, command:str, hostname: str, port: int, verbose: bool, args) -> bool: - if command == 'listen' and (args.expander is not None) and (args.address is not None): + if command == 'listen' and (args.i2c_expander is not None) and (args.i2c_address is not None): print("running " + self.packagename + " on " + hostname + ":" + str(port) + " (LCD " + str(args.num_lines) + "/" + str(args.num_chars) + ")") - run_server(hostname, port, args.name, args.expander, self.to_hex(args.address), int(args.num_lines), int(args.num_chars), self.description) + run_server(hostname, port, args.name, args.i2c_expander, self.to_hex(args.i2c_address), int(args.num_lines), int(args.num_chars), self.description) return True elif args.command == 'register' and (args.i2c_expander is not None) and (args.i2c_address is not None): print("register " + self.packagename + " on " + hostname + ":" + str(port) + " (LCD " + str(args.num_lines) + "/" + str(args.num_chars) + ") and starting it")