Onkyo module help
flcusat
Posts: 309
I'm trying to use the Onkyo module posted at the partners site. The module expects a button press in the TP to select which zone is going to be controlled. I just need to use the main zone but I don't want to press a button to select the zone to be controlled. In the UI module there is a variable for the zone selection.
later in code there is button event for the selection of the zone base in the value of nBtnDest and also to activated the feedback of the different buttons for the selected zone
I tried different things trying to fool the module to think that the Main Zone is selected all the time unsuccessfully. How can I handle this?
INTEGER nBtnDest[] = { 2, // Main 7, // Zone 2 8 // Record }
later in code there is button event for the selection of the zone base in the value of nBtnDest and also to activated the feedback of the different buttons for the selected zone
BUTTON_EVENT[dvPnls,nBtnDest] { PUSH : { nPnlIdx = GET_LAST(dvPnls) nBtnIdx = GET_LAST(nBtnDest) SWITCH(nBtnIdx) { CASE 1 : // Main CASE 2 : // Zone 2 CASE 3 : // Record { IF(uTP[nPnlIdx].nDest = nBtnIdx) uTP[nPnlIdx].nDest = 0 ELSE uTP[nPnlIdx].nDest = nBtnIdx } } SetPanelFB (BUTTON.INPUT.DEVICE, nPnlIdx) } }
I tried different things trying to fool the module to think that the Main Zone is selected all the time unsuccessfully. How can I handle this?
0
Comments