Skip to content

Commit

Permalink
Try harder to not default Space Cadet to on unless the user has expli…
Browse files Browse the repository at this point in the history
…ctly turned it on
  • Loading branch information
obra committed Mar 6, 2024
1 parent 47b0ac7 commit ddb03b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ namespace plugin {

EventHandlerResult SpaceCadetConfig::onSetup() {
bool success = ::EEPROMSettings.requestSliceAndLoadData(sizeof(::SpaceCadet::settings_), &settings_base_, &::SpaceCadet.settings_);
if (!success || !spaceCadet.active()) {
::SpaceCadet.disable();
}

return EventHandlerResult::OK;
}
Expand Down

0 comments on commit ddb03b7

Please sign in to comment.