Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dmx: if request DMX fail don't change the button status
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
  • Loading branch information
Xiangfu Liu committed Dec 6, 2011
1 parent 0d6ac54 commit 567aca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/dmx.c
Expand Up @@ -46,13 +46,14 @@ static void set_chain_mode(int chain)
{
int fd;

if(!resmgr_acquire("DMX settings", RESOURCE_DMX_OUT)) return;

chain_mode = chain;
if(chain)
mtk_cmd(appid, "b_chain.set(-state on)");
else
mtk_cmd(appid, "b_chain.set(-state off)");

if(!resmgr_acquire("DMX settings", RESOURCE_DMX_OUT)) return;
fd = open("/dev/dmx_out", O_RDWR);
if(fd == -1) {
resmgr_release(RESOURCE_DMX_OUT);
Expand Down

0 comments on commit 567aca1

Please sign in to comment.