Innacurate volume feedback
flcusat
Posts: 309
I'm having an innacurate volume feedback using AMX module for NAD 773 receiver. When the volume is all the way down the feedback reads 4, when the volume is all the way up the feedback reads 87. Other than that everything looks OK. Here is the portion of the code that handles the volume feedback
Any suggestions?
DATA_EVENT[vdvNAD_T773] { STRING: { STACK_VAR CHAR cCMD[35] IF(nDEBUG) { SEND_STRING 0, "'UI RECEIVED FROM COMM: ',DATA.TEXT" } IF(FIND_STRING(DATA.TEXT, '=', 1)) { cCMD = REMOVE_STRING(DATA.TEXT, '=', 1) } ELSE { cCMD = DATA.TEXT } SWITCH(cCMD) { . . . CASE 'VOLUME=': { fnPARSE(':',DATA.TEXT,cCOMMAND) IF(cCOMMAND[2] == '1')//ZONE 1 { SEND_COMMAND dvTP, "'@TXT',1,cCOMMAND[1]" } ELSE IF(cCOMMAND[2] == '2')//ZONE 2 { SEND_COMMAND dvTP, "'@TXT',2,cCOMMAND[1]" } } }// END SWITCH(cCMD) }// END STRING }// END DATA_EVENT[vdvDEVICE]
Any suggestions?
0
Comments