Correct cut and paste error in partest.c file.

This commit is contained in:
Richard Barry 2012-10-29 16:17:05 +00:00
parent ba686260ca
commit 2a47ddd1f5

View File

@ -144,8 +144,8 @@ unsigned long ulCurrentState;
else if( ulLEDIn == 1 ) else if( ulLEDIn == 1 )
{ {
/* If this bit is already set, clear it, and visa versa. */ /* If this bit is already set, clear it, and visa versa. */
ulCurrentState = GPIO1->FIOPIN; ulCurrentState = GPIO0->FIOPIN;
if( ulCurrentState & partstLED1_OUTPUT ) if( ulCurrentState & partstLED2_OUTPUT )
{ {
GPIO0->FIOCLR = partstLED2_OUTPUT; GPIO0->FIOCLR = partstLED2_OUTPUT;
} }