Skip to content

Commit

Permalink
reolink: enable speed arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Koushik Dutta authored and Koushik Dutta committed Jul 30, 2024
1 parent 95906a9 commit 2013830
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/reolink/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/reolink/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/reolink",
"version": "0.0.87",
"version": "0.0.88",
"description": "Reolink Plugin for Scrypted",
"author": "Scrypted",
"license": "Apache",
Expand Down
4 changes: 2 additions & 2 deletions plugins/reolink/src/reolink-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class ReolinkCameraClient {
op += 'Up';

if (op) {
await this.ptzOp(op, (command.speed?.pan || command.speed?.tilt || 1) * 10);
await this.ptzOp(op, Math.round((command.speed?.pan || command.speed?.tilt || 1) * 10));
}

if (command.zoom < 0)
Expand All @@ -269,7 +269,7 @@ export class ReolinkCameraClient {
op = 'ZoomInc';

if (op) {
await this.ptzOp(op, (command.speed?.zoom || 1) * 10);
await this.ptzOp(op, Math.round((command.speed?.zoom || 1) * 10));
}
}

Expand Down

0 comments on commit 2013830

Please sign in to comment.