Skip to content

Commit

Permalink
fix(dingz): max tilt value
Browse files Browse the repository at this point in the history
- correctly set maxTiltValue everywhere
  • Loading branch information
johannrichard committed Nov 23, 2020
1 parent 452fa79 commit e282116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dingzAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ export class DingzDaAccessory extends EventEmitter {
.getCharacteristic(
this.platform.Characteristic.CurrentHorizontalTiltAngle,
)
.updateValue((state.lamella / 100) * 90); // Set in °, Get in % (...)
.updateValue((state.lamella / 100) * maxTiltValue); // Set in °, Get in % (...)
break;
}
service
Expand Down

0 comments on commit e282116

Please sign in to comment.