Skip to content

Commit

Permalink
fixed #504 - copy operator for actual struct, not pointer to it
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhensley committed Apr 28, 2022
1 parent 4415145 commit 9697525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/PersistentStorage.h
Expand Up @@ -101,7 +101,7 @@ class PersistentStorage
/** Restores the settings stored in the QSPI */
void RestoreDefaults()
{
*settings_ = default_settings_;
settings_ = default_settings_;
state_ = State::FACTORY;
StoreSettingsIfChanged();
}
Expand Down

0 comments on commit 9697525

Please sign in to comment.