-
Notifications
You must be signed in to change notification settings - Fork 16
Setup.state as u8 and shorter keys #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -11,7 +11,7 @@ def store_settings(nickname): | |||
|
|||
def is_developer(nickname): | |||
if (nickname==""): | |||
badge.nvs_set_str('badge', 'setup.state', '2') # Skip the sponsors | |||
badge.nvs_set_u8('badge', 'setup.state', 2) # Skip the sponsors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we change the type of 'setup.state', we should support backward compatibility / conversion of old values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we cannot just change the type of a nvs key without any conversion-code.
'2'
(empty response; "not set")
(empty response; "not set")
'2' We're not ready for type conversion yet. Working on it.. |
Fixed master-branch. When setting a key, you can now change the key type. badge.nvs_set_str('badge', 'something', '42') badge.nvs_set_u8('badge', 'something', 42) You do not need an explicit nvs_erase_key. |
@basvs since we are re-flashing all . . |
agreed |
No description provided.