Skip to content

Commit

Permalink
Merge pull request #23 from fbosman/main
Browse files Browse the repository at this point in the history
Update actions.js
  • Loading branch information
fbosman authored Oct 12, 2024
2 parents b01622e + da2a169 commit 8abd227
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function sendPTZ(self, action, direction) {
.request(url, self.urlliboptions
)
.then((result) => {
console.log("debug", `Action result: `+ util.inspect (result));
// console.log("debug", `Action result: `+ util.inspect (result));

self.getCameraPosition();
self.checkFeedbacks();
Expand Down Expand Up @@ -475,8 +475,8 @@ seriesActions.ptSpeed = true;
// }

// if (seriesActions.focus) {
actions.focusF = {
name: "Lens - Focus Far",
actions.focusS = {
name: "Lens - Focus Stop`",
options: [],
callback: async (action) => {
cmd = "continuousfocusmove";
Expand All @@ -486,15 +486,6 @@ seriesActions.ptSpeed = true;
};
// }

//if (seriesActions.focus) {
actions.focusS = {
name: "Lens - Focus Stop",
options: [],
callback: async (action) => {
await sendPTZ(self, "F50");
},
};
//}

if (seriesActions.fSpeed) {
actions.fSpeedS = {
Expand Down

0 comments on commit 8abd227

Please sign in to comment.