Skip to content

Commit 567aca1

Browse files
author
Xiangfu Liu
committedDec 6, 2011
dmx: if request DMX fail don't change the button status
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
1 parent 0d6ac54 commit 567aca1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/gui/dmx.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ static void set_chain_mode(int chain)
4646
{
4747
int fd;
4848

49+
if(!resmgr_acquire("DMX settings", RESOURCE_DMX_OUT)) return;
50+
4951
chain_mode = chain;
5052
if(chain)
5153
mtk_cmd(appid, "b_chain.set(-state on)");
5254
else
5355
mtk_cmd(appid, "b_chain.set(-state off)");
5456

55-
if(!resmgr_acquire("DMX settings", RESOURCE_DMX_OUT)) return;
5657
fd = open("/dev/dmx_out", O_RDWR);
5758
if(fd == -1) {
5859
resmgr_release(RESOURCE_DMX_OUT);

0 commit comments

Comments
 (0)