diff --git a/src/main/device/razerdevicekeyboard.js b/src/main/device/razerdevicekeyboard.js index 70f1d106..7c775721 100644 --- a/src/main/device/razerdevicekeyboard.js +++ b/src/main/device/razerdevicekeyboard.js @@ -33,7 +33,9 @@ export class RazerDeviceKeyboard extends RazerDevice { resetToState(state) { super.resetToState(state); - this.setBrightness(state.brightness); + if(typeof state.brightness !== 'undefined' && state.brightness !== this.brightness) { + this.setBrightness(state.brightness); + } } destroy() { @@ -130,4 +132,4 @@ export class RazerDeviceKeyboard extends RazerDevice { setModeCustom() { this.addon.kbdSetModeCustom(this.internalId); } -} \ No newline at end of file +}