matrix: shorten statement.

Change-Id: I08ac097cab4c2378a4e042b47934ef5870df003d
This commit is contained in:
Thomas Martitz 2012-03-03 16:45:59 +01:00
parent 36c84f9a90
commit 8eb36cfe85

View file

@ -255,16 +255,8 @@ enum plugin_status plugin_start(const void* parameter) {
rb->sleep(sleep); rb->sleep(sleep);
} }
if(frozen) button = pluginlib_getaction(frozen ? TIMEOUT_BLOCK : TIMEOUT_NOBLOCK,
{ plugin_contexts, ARRAYLEN(plugin_contexts));
button = pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts,
ARRAYLEN(plugin_contexts));
}
else
{
button = pluginlib_getaction(TIMEOUT_NOBLOCK, plugin_contexts,
ARRAYLEN(plugin_contexts));
}
switch(button) { switch(button) {
case MATRIX_PAUSE: case MATRIX_PAUSE: