Skip to content

Commit 533d8a2

Browse files
authored
Merge pull request #145 from openxc/c5_Cellular_modem_configuration
Change arguments to correctly seen command for modem_configuration.
2 parents 4ff2ca4 + d0928b8 commit 533d8a2

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

openxc/controllers/usb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def _send_complex_request(self, request):
3333
"""Send a request via the USB control request endpoint, rather than as a
3434
bulk transfer.
3535
"""
36+
# LOG.warn("DEBUG STUFF ________________ " + str(self.streamer.serialize_for_stream(request)))
3637
self.device.ctrl_transfer(0x40, self.COMPLEX_CONTROL_COMMAND, 0, 0,
3738
self.streamer.serialize_for_stream(request))
3839

openxc/tools/control.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def parse_options():
129129
dest="unix_time")
130130
parser.add_argument("--host", action="store", default=None,
131131
dest="host")
132+
parser.add_argument("--network-host", action="store", default=None,
133+
dest="network_host")
132134
parser.add_argument("--port", action="store", default=80,
133135
dest="port")
134136
parser.set_defaults(format="json")
@@ -143,8 +145,8 @@ def handle_set_command(arguments, interface):
143145
set_payload_format(interface, arguments.new_payload_format)
144146
if arguments.unix_time is not None:
145147
set_rtc_time(interface, int(arguments.unix_time))
146-
if arguments.host is not None:
147-
modem_configuration(interface, arguments.host, arguments.port)
148+
if arguments.network_host is not None:
149+
modem_configuration(interface, arguments.network_host, arguments.port)
148150

149151
def handle_write_command(arguments, interface):
150152
if arguments.write_name:

0 commit comments

Comments
 (0)