little code improvement, removed if-else for ternary operator

main
Georg Krause 2018-03-10 13:31:37 +01:00 committed by Harry van Haaren
parent e06052b656
commit 9607768b7e
1 changed files with 1 additions and 8 deletions

View File

@ -612,15 +612,8 @@ void GenericMIDI::launchScene( int scene )
unsigned char data[3];
data[0] = b->status;
data[1] = b->data;
data[2] = (i == scene) * 127;
if ( i != scene )
{
data[2] = 0;
}
else
{
data[2] = 127;
}
//LUPPP_NOTE("this = %i GenericMIDI::launchScene()", this );
writeMidi( data );