You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the last valid password (when inserted by the user) is kept by the variable "validPassword", and used when a password change is not required. However, the MCP2210 already provides a mechanism that allows the previous password to be kept without having to know about it. Basically, MCP2210::writeNVChipSettings() can accept an empty string as a password, and the MCP2210 itself will preserve the previous password by using that. In the datasheet, see table 3-1, note 1, which states the following:
When the password does not need to change, this field must be filled with 0 (it applies to (byte index 19 to 26).
An empty password string is internally treated as a series of eight zeros (because MCP2210::hidTransfer() pads the command data with zeros), which satisfies the requisites above. Therefore, "validPassword" is not needed and should even be removed.
The text was updated successfully, but these errors were encountered:
Currently, the last valid password (when inserted by the user) is kept by the variable "validPassword", and used when a password change is not required. However, the MCP2210 already provides a mechanism that allows the previous password to be kept without having to know about it. Basically, MCP2210::writeNVChipSettings() can accept an empty string as a password, and the MCP2210 itself will preserve the previous password by using that. In the datasheet, see table 3-1, note 1, which states the following:
An empty password string is internally treated as a series of eight zeros (because MCP2210::hidTransfer() pads the command data with zeros), which satisfies the requisites above. Therefore, "validPassword" is not needed and should even be removed.
The text was updated successfully, but these errors were encountered: