Skip to content

Commit

Permalink
Merge pull request #105 from coronasafe/fix-typos
Browse files Browse the repository at this point in the history
fixed typos in variable names
  • Loading branch information
mathew-alex authored Oct 19, 2023
2 parents 7de5da2 + b39736f commit 33255fe
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 33255fe

Please sign in to comment.