From 6f0c82ee870c90c3daa627c1b8eb582296dd245d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 26 Oct 2006 18:13:54 +0000 Subject: [PATCH] rec-light patch from jim duchek (thanks!) git-svn-id: svn://localhost/ardour2/trunk@1027 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/tranzport/tranzport_control_protocol.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/surfaces/tranzport/tranzport_control_protocol.cc b/libs/surfaces/tranzport/tranzport_control_protocol.cc index 2e2d943244..f0936290da 100644 --- a/libs/surfaces/tranzport/tranzport_control_protocol.cc +++ b/libs/surfaces/tranzport/tranzport_control_protocol.cc @@ -760,6 +760,14 @@ TranzportControlProtocol::update_state () } } + if (pending_lights[LightTrackrec] != lights[LightTrackrec]) { + if (pending_lights[LightTrackrec]) { + light_on (LightTrackrec); + } else { + light_off (LightTrackrec); + } + } + if (pending_lights[LightTrackmute] != lights[LightTrackmute]) { if (pending_lights[LightTrackmute]) { light_on (LightTrackmute);