External Device Container

61 views
Skip to first unread message

Mustafa Yuce

unread,
Oct 19, 2015, 7:11:26 AM10/19/15
to plan44_vdcd
Hi Lukas,

We have looked at your new "External Device" feature on plan44 vdcd. I think there is a problem in externaldevicecontainer.cpp line 629. Your code is 

bb->setHardwareButtonConfig(buttonId, buttonType, buttonElement, false, buttonElement_down ? 1 : 0, true); // fixed mode

But in my opinion code part must be like this ;

bb->setHardwareButtonConfig(buttonId, buttonType, buttonElement, falsebuttonElement == buttonElement_down ? 1 : 0, true); // fixed mode

Could you please think about this issue?

Kind Regards,

Mustafa Yüce

Lukas Zeller

unread,
Oct 19, 2015, 4:10:43 PM10/19/15
to plan44_vdcd
Hi Mustafa,

You are absolutely right, my code is wrong for the two-way button case, and your fix is correct.
I applied your patch, see the latest commit on luz on github. I also updated the docs, because a two way button must define the down element first, then the up element in order to work correctly.

Thanks a lot for reporting your discovery and the bugfix!

Best Regards,

Lukas
Reply all
Reply to author
Forward
0 new messages