Skip to content

Commit

Permalink
fix: Incorrect LED brightness #3
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Feb 5, 2020
1 parent c556686 commit b594618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/led-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class LEDElement extends LitElement {
render() {
const { color, lightColor } = this;
const lightColorActual = lightColor || lightColors[color] || '#ff8080';
const opacity = this.brightness ? 0.3 + this.brightness / 0.7 : 0;
const opacity = this.brightness ? 0.3 + this.brightness * 0.7 : 0;
return html`
<div class="led-container">
<svg
Expand Down

0 comments on commit b594618

Please sign in to comment.