X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fsurfaces%2Ftranzport%2Fio.cc;h=3fe1b554ca6a590bd4f83473868f380bb369ff0e;hb=95ba43916f5e7e3421adf2629b3eae5fe63fe5de;hp=14242ea0ec2e292da6178d4826c84d3404781ec7;hpb=e878b365193ad9315e557a8245b767d8a0fe568d;p=ardour.git diff --git a/libs/surfaces/tranzport/io.cc b/libs/surfaces/tranzport/io.cc index 14242ea0ec..3fe1b554ca 100644 --- a/libs/surfaces/tranzport/io.cc +++ b/libs/surfaces/tranzport/io.cc @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Paul Davis + * Copyright (C) 2006 Paul Davis * Copyright (C) 2007 Michael Taht * * This program is free software; you can redistribute it and/or modify @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * + * * */ /* The routines in here should know absolutely nothing about how io is actually done */ @@ -59,21 +59,21 @@ TranzportControlProtocol::lights_flush () std::bitset light_state; light_state = lights_pending ^ lights_current; if ( (light_state.none() || lights_invalid.none())) - { - return (0); + { + return (0); } #if DEBUG_TRANZPORT_LIGHTS printf("LPEND : %s\n", lights_pending.to_string().c_str()); printf("LCURR : %s\n", lights_current.to_string().c_str()); #endif - + // if ever we thread reads/writes STATUS_OK will have to move into the loop int i; - + if ( _device_status == STATUS_OK || _device_status == STATUS_ONLINE) { for (i = 0; i 2 printf("Did %d light writes\n",i); @@ -90,6 +90,6 @@ TranzportControlProtocol::lights_flush () #if DEBUG_TRANZPORT_LIGHTS > 2 printf("Did %d light writes, left: %d\n",i, light_state.count()); #endif - + return light_state.count(); }