Fixed a bug in PIN CHANGE
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@420 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -96,7 +96,9 @@ void PIN_changePinFirstInsert(struct PIN* self, char* const firstPinInsert)
|
||||
for (loopCounter = 0; loopCounter < PIN_NUMBER_OF_DIGITS; loopCounter++)
|
||||
{
|
||||
self->pinchangeFirstInsert[loopCounter] = firstPinInsert[loopCounter];
|
||||
// LOGGER_DEBUG(mainLog, "%i", self->pinchangeFirstInsert[loopCounter]);
|
||||
}
|
||||
self->pinchangeFirstInsert[PIN_NUMBER_OF_DIGITS] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +113,9 @@ ErrorStatus PIN_changePinSecondInsert(struct PIN* self, char* const secondPinIns
|
||||
for (loopCounter = 0; loopCounter < PIN_NUMBER_OF_DIGITS; loopCounter++)
|
||||
{
|
||||
self->pinchangeSecondInsert[loopCounter] = secondPinInsert[loopCounter];
|
||||
// LOGGER_DEBUG(mainLog, "%i", self->pinchangeSecondInsert[loopCounter]);
|
||||
}
|
||||
self->pinchangeSecondInsert[PIN_NUMBER_OF_DIGITS] = '\0';
|
||||
}
|
||||
|
||||
returnValue = PIN_verifyInsertedPins(self);
|
||||
@@ -137,6 +141,7 @@ static ErrorStatus PIN_verifyInsertedPins(struct PIN* self)
|
||||
if (strlen(self->pinchangeFirstInsert) != PIN_NUMBER_OF_DIGITS)
|
||||
{
|
||||
returnValue = ERROR;
|
||||
// LOGGER_ERROR(mainLog, "strlen 1 - %d", strlen(self->pinchangeFirstInsert));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,6 +150,7 @@ static ErrorStatus PIN_verifyInsertedPins(struct PIN* self)
|
||||
if (strlen(self->pinchangeSecondInsert) != PIN_NUMBER_OF_DIGITS)
|
||||
{
|
||||
returnValue = ERROR;
|
||||
// LOGGER_ERROR(mainLog, "strlen 2 - %d", strlen(self->pinchangeSecondInsert));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,6 +160,7 @@ static ErrorStatus PIN_verifyInsertedPins(struct PIN* self)
|
||||
{
|
||||
// Inserted PINs are not equal
|
||||
returnValue = ERROR;
|
||||
// LOGGER_ERROR(mainLog, "not equal");
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
|
||||
Reference in New Issue
Block a user