funzioni e puntatori

dimenticavo un pezzo nello sketch che fa uso dei puntatori:

//*********************************ANALOG SIGNAL MANAGE FUNCTION*****************

int refManageFunction (int ref_in,int*ref_out) {
  
if (ref_in>=low_ref_backward && ref_in <= high_ref_backward) //caso motore indietro
*ref_out=255-(ref_in/2);
if (ref_in>=low_ref_for_stop && ref_in <= high_ref_for_stop) //caso potenziometro al centro motore fermo
*ref_out=0;
if (ref_in >= low_ref_forward && ref_in <= high_ref_forward) //caso potenziometro per motore avanti
*ref_out=(ref_in-512)/2;   

return *ref_out;
}  /code]