mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-14 04:56:37 +00:00
fix: update DeletePasswordCharacter method to use length before deletion for proper LED feedback.
This commit is contained in:
parent
93f0f4cbfe
commit
69ea8589cc
1 changed files with 2 additions and 1 deletions
|
|
@ -126,8 +126,9 @@ namespace PepperDash.Core.PasswordManagement
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void DeletePasswordCharacter()
|
public void DeletePasswordCharacter()
|
||||||
{
|
{
|
||||||
|
ushort PasswordLengthBeforeDelete = (ushort)PasswordToValidate.Length;
|
||||||
PasswordToValidate = PasswordToValidate.Substring(0, PasswordToValidate.Length - 1);
|
PasswordToValidate = PasswordToValidate.Substring(0, PasswordToValidate.Length - 1);
|
||||||
OnBoolChange(false, (ushort)PasswordToValidate.Length, PasswordManagementConstants.PasswordLedFeedbackChange);
|
OnBoolChange(false, (ushort)PasswordLengthBeforeDelete, PasswordManagementConstants.PasswordLedFeedbackChange);
|
||||||
// Verify if OnStringChange is needed to update the S+ wrapper with the entered PasswordToValidate
|
// Verify if OnStringChange is needed to update the S+ wrapper with the entered PasswordToValidate
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue