Commit 8dd6c2e2ed2018cc513f6fc9a342ba562867058a
1 parent
5cf07246
Exists in
dev
petite optimisation
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
devices_channel/src_device/client/device_controller_abstract.py
... | ... | @@ -472,7 +472,8 @@ class DeviceControllerAbstract(): |
472 | 472 | # ex: "set_radec" |
473 | 473 | generic_cmd = cmd_splitted[0] + '_' + cmd_splitted[1] |
474 | 474 | # Check this generic command exists |
475 | - if (generic_cmd not in self._cmd.keys()): return False,False | |
475 | + #if (generic_cmd not in self._cmd.keys()): return False,False | |
476 | + if generic_cmd not in self._cmd: return False,False | |
476 | 477 | # Is there value(s) passed ? |
477 | 478 | if len(cmd_splitted) > 2: values_to_set = cmd_splitted[2:] |
478 | 479 | # ex: return "set_radec", ["20:00:00", "90:00:00"] | ... | ... |