MCPcopy Create free account
hub / github.com/ArduPilot/ArduRemoteID / config_change_response

Function config_change_response

scripts/secure_command.py:109–121  ·  view source on GitHub ↗
(reply)

Source from the content-addressed store, hash-verified

107 print("Requested session key")
108
109def config_change_response(reply):
110 if not reply:
111 print("Config change timed out")
112 return
113 result_map = {
114 0: "ACCEPTED",
115 1: "TEMPORARILY_REJECTED",
116 2: "DENIED",
117 3: "UNSUPPORTED",
118 4: "FAILED" }
119 result = result_map.get(reply.response.result, "invalid")
120 print("Got change response: %s" % result)
121 sys.exit(reply.response.result)
122
123def send_config_change():
124 '''send remoteid config change'''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected