matrix: shorten statement.
Change-Id: I08ac097cab4c2378a4e042b47934ef5870df003d
This commit is contained in:
parent
36c84f9a90
commit
8eb36cfe85
1 changed files with 2 additions and 10 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue