Skip to content

Commit

Permalink
enableDegamma = !enableGamma, confusingly
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Aug 12, 2020
1 parent e9884aa commit 7eda5ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server/blink1Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ var Blink1Service = {
var crgb = color.toRgb();
try {
var b1 = blink1s[blink1idx].device;
if( this.conf.enableDegamma ) {
b1.enableDegamma = this.conf.enableDegamma; // only set if defined
if( this.conf.enableGamma !== undefined ) {
b1.enableDegamma = !this.conf.enableGamma; // FIXME: fix this in node-blink1?
}
b1.fadeToRGB( millis, crgb.r, crgb.g, crgb.b, ledn );
} catch(err) {
Expand Down

0 comments on commit 7eda5ab

Please sign in to comment.