Home AMX User Forum AMX General Discussion

Onkyo module help

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.
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?

Comments

  • alexanboalexanbo Posts: 282
    Maybe throw a Do_Push(dvPnls[x],nBtnDest[1]) into the online event of dvPnls or wherever you want to tell/remind the system to control the main zone. This just simulates pushing the zone 1 select button for the panel at index x in array dvPnls
Sign In or Register to comment.