From 2a78f0a85274df4ee0d530f2dde656d4dd0bbe49 Mon Sep 17 00:00:00 2001 From: Térence Clastres Date: Thu, 30 Aug 2018 22:36:59 +0200 Subject: LCXL: Fix check if ports exist --- libs/surfaces/launch_control_xl/launch_control_xl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/surfaces/launch_control_xl/launch_control_xl.cc b/libs/surfaces/launch_control_xl/launch_control_xl.cc index eaa125df82..0c617205bf 100644 --- a/libs/surfaces/launch_control_xl/launch_control_xl.cc +++ b/libs/surfaces/launch_control_xl/launch_control_xl.cc @@ -706,7 +706,7 @@ LaunchControlXL::set_state (const XMLNode & node, int version) void LaunchControlXL::port_registration_handler () { - if (!_async_in && !_async_out) { + if (!_async_in || !_async_out) { /* ports not registered yet */ return; } -- cgit v1.2.3