aboutsummaryrefslogtreecommitdiffhomepage
path: root/AT91SAM7S256/Source/c_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/Source/c_input.c')
-rw-r--r--AT91SAM7S256/Source/c_input.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/AT91SAM7S256/Source/c_input.c b/AT91SAM7S256/Source/c_input.c
index 18a14c6..21f7626 100644
--- a/AT91SAM7S256/Source/c_input.c
+++ b/AT91SAM7S256/Source/c_input.c
@@ -171,7 +171,6 @@ void cInputCtrl(void)
for (Tmp = 0; Tmp < NO_OF_INPUTS; Tmp++)
{
UBYTE sType = IOMapInput.Inputs[Tmp].SensorType;
- UBYTE *pType = &IOMapInput.Inputs[Tmp].SensorType;
UBYTE oldType = VarsInput.OldSensorType[Tmp];
if (sType != oldType)
@@ -197,8 +196,7 @@ void cInputCtrl(void)
sType = COLOREXIT;
}
/* Setup the pins for the new sensortype */
- cInputSetupType(Tmp, pType, oldType);
- sType = *pType;
+ cInputSetupType(Tmp, sType, oldType);
IOMapInput.Inputs[Tmp].InvalidData = INVALID_DATA;
VarsInput.OldSensorType[Tmp] = sType;
}