diff --git a/openxc/controllers/usb.py b/openxc/controllers/usb.py index 5ce8ccd3..663a8baf 100644 --- a/openxc/controllers/usb.py +++ b/openxc/controllers/usb.py @@ -33,6 +33,7 @@ def _send_complex_request(self, request): """Send a request via the USB control request endpoint, rather than as a bulk transfer. """ + # LOG.warn("DEBUG STUFF ________________ " + str(self.streamer.serialize_for_stream(request))) self.device.ctrl_transfer(0x40, self.COMPLEX_CONTROL_COMMAND, 0, 0, self.streamer.serialize_for_stream(request)) diff --git a/openxc/tools/control.py b/openxc/tools/control.py index 9945084e..98e52024 100644 --- a/openxc/tools/control.py +++ b/openxc/tools/control.py @@ -129,6 +129,8 @@ def parse_options(): dest="unix_time") parser.add_argument("--host", action="store", default=None, dest="host") + parser.add_argument("--network-host", action="store", default=None, + dest="network_host") parser.add_argument("--port", action="store", default=80, dest="port") parser.set_defaults(format="json") @@ -143,8 +145,8 @@ def handle_set_command(arguments, interface): set_payload_format(interface, arguments.new_payload_format) if arguments.unix_time is not None: set_rtc_time(interface, int(arguments.unix_time)) - if arguments.host is not None: - modem_configuration(interface, arguments.host, arguments.port) + if arguments.network_host is not None: + modem_configuration(interface, arguments.network_host, arguments.port) def handle_write_command(arguments, interface): if arguments.write_name: