diff --git a/MAVProxy/modules/mavproxy_console.py b/MAVProxy/modules/mavproxy_console.py index 86c2aa90e0..c084311260 100644 --- a/MAVProxy/modules/mavproxy_console.py +++ b/MAVProxy/modules/mavproxy_console.py @@ -26,7 +26,7 @@ def __init__(self, fmt, expression, row): class ConsoleModule(mp_module.MPModule): def __init__(self, mpstate): - super(ConsoleModule, self).__init__(mpstate, "console", "GUI console", public=True, multi_vehicle=True) + super(ConsoleModule, self).__init__(mpstate, "console", "GUI console", public=False, multi_vehicle=True) self.in_air = False self.start_time = 0.0 self.total_time = 0.0 @@ -97,6 +97,9 @@ def __init__(self, mpstate): self.vehicle_menu = MPMenuSubMenu('Vehicle', items=[]) self.add_menu(self.vehicle_menu) + # make public after init to prevent race conditions + self.make_public() + def cmd_console(self, args): usage = 'usage: console ' if len(args) < 1: