fiexed a warning in night.c

This commit is contained in:
schneider 2011-08-05 16:54:45 +02:00
parent 3f1da363e2
commit 31deb031f5
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ void LightCheck(void){
iocon=IOCON_PIO1_11;
// iodir=gpioGetDir(RB_LED3);
iodir= (GPIO_GPIO1DIR & (1 << (RB_LED3) ))?1:0;
//LED3 is on pin 11
iodir= (GPIO_GPIO1DIR & (1 << (11) ))?1:0;
gpioSetDir(RB_LED3, gpioDirection_Input);
IOCON_PIO1_11 = IOCON_PIO1_11_FUNC_AD7|IOCON_PIO1_11_ADMODE_ANALOG;