(self)
| 30 | }) |
| 31 | |
| 32 | def run(self): |
| 33 | #FIXME: this was copied from command/hobbico/cme ; to be adapted wrt Tello's methods |
| 34 | essid = self.config.option("TARGET").value |
| 35 | new_essid = self.config.option("NEW_SSID").value |
| 36 | t = self.console.state['TARGETS'] |
| 37 | pswd = t[essid]['password'] |
| 38 | if self._change_ap_creds(new_essid, pswd): |
| 39 | t[new_essid] = {k: new_essid if k == "essid" else v for k, v in t[essid].items()} |
| 40 | self.config['NEW_SSID'] = essid |
| 41 | del t[essid] |
| 42 | self.console.root.interfaces |
| 43 | self.config['TARGET'] = new_essid if self.connect(new_essid) is not None else None |
| 44 | |
| 45 | |
| 46 | class EmergencyStop(TelloModule): |
nothing calls this directly
no test coverage detected