Skip to content

Commit

Permalink
fixed typos in variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Oct 19, 2023
1 parent 7de5da2 commit b39736f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/automation/autoDataExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const extractData = async (camParams, monitorPreset = { x: 0, y: 0, z: 0 }) => {
console.log("Moving to coordinates: ", monitorPreset);
await CameraUtils.absoluteMove({ camParams, ...monitorPreset });

CameraUtils.lockCamera(cameraParams.hostname);
CameraUtils.lockCamera(camParams.hostname);

// TODO: replace timeout with a better solution
await new Promise((resolve) =>
Expand All @@ -85,7 +85,7 @@ const extractData = async (camParams, monitorPreset = { x: 0, y: 0, z: 0 }) => {

const snapshotUrl = await CameraUtils.getSnapshotUri({ camParams });

CameraUtils.unlockCamera(cameraParams.hostname);
CameraUtils.unlockCamera(camParams.hostname);

const fileName = "image-" + new Date().getTime() + ".jpeg";
const imagePath = path.resolve("images", fileName);
Expand Down Expand Up @@ -119,7 +119,7 @@ const extractData = async (camParams, monitorPreset = { x: 0, y: 0, z: 0 }) => {
return getSanitizedData(response.data.data);
} catch (err) {
console.log("Error in extractData: ", err);
CameraUtils.unlockCamera(cameraParams.hostname);
CameraUtils.unlockCamera(camParams.hostname);
return {
spo2: null,
ventilator_spo2: null,
Expand Down

0 comments on commit b39736f

Please sign in to comment.