Skip to content

Commit

Permalink
Fixed off by opposite from 462c0e0 (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Apr 20, 2024
1 parent 47ada13 commit 194c073
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,9 @@ private Signal<Double, Void> computeCombined(IndoorAmbientPair pair) {

// Shortcut: are we enabled to begin with?

if (config.isEnabled()) {
if (!config.isEnabled()) {

logger.trace("not enabled, bailing out with 0");
return new Signal<>(clock.instant(), 0d);
}


if (config.settings == null) {

logger.trace("no settings, bailing out with 0");
logger.trace("not enabled, bailing out with 0: {}", config);
return new Signal<>(clock.instant(), 0d);
}

Expand Down

0 comments on commit 194c073

Please sign in to comment.