rabbitnet RN1100 rn_digIn question

Just wanted to find out if rn_digIn can be called twice in a same subroutine,
ie as below:

//read prox sensor position left
rn_digIn(dai_handle_RN1100, 2, stdby_left, 0);
if (*stdby_left == FALSE)
{
lui_WriteLockClosedLED(TRUE);
}
else
{
lui_WriteLockClosedLED(FALSE); 
}

//read prox sensor position right
rn_digIn(dai_handle_RN1100, 3, stdby_right, 0);
if (*stdby_right == FALSE)
{
lui_WriteCouplantLowLED(TRUE);
}
else
{
lui_WriteCouplantLowLED(FALSE); 
}

I am seeing erratic behaviour on the RN1100 when calling rn_digIn function twice ( RN1100 puts the system into reset), it works fine and provides the correct output if the function was only used once.I can confirm that the voltages to the input ports are correct.

There shouldn’t be any reason to see erratic behavior just from reading the digital input more than once.

Try adding an additional rn_digIn() to the update_input() function in the sample program digin.c to see if you see an issue.

If you do not, then it is probably something else in your code.