void DigitalSensorInit()
{
//ROM sets P1OUT = 0x0F, this then consumes some current
P1OUT = 0x00; // needed to reduce power consumption on RF430FRL152H EVM, since P1.3 is connected to a 2.2K Ohm resistor on the EVM to ground
P1DIR &= ~MASTER_SLAVE_SELECT; // check if digital sensor mode is selected
if (P1IN & MASTER_SLAVE_SELECT)
{
//P1DIR &= ~MASTER_SLAVE_SELECT; //host controller mode selected, exit
return;
}