Skip to content

Commit b594618

Browse files
committed
fix: Incorrect LED brightness #3
1 parent c556686 commit b594618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/led-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class LEDElement extends LitElement {
4343
render() {
4444
const { color, lightColor } = this;
4545
const lightColorActual = lightColor || lightColors[color] || '#ff8080';
46-
const opacity = this.brightness ? 0.3 + this.brightness / 0.7 : 0;
46+
const opacity = this.brightness ? 0.3 + this.brightness * 0.7 : 0;
4747
return html`
4848
<div class="led-container">
4949
<svg

0 commit comments

Comments
 (0)