Enable open and close functions

This commit is contained in:
Matt McWilliams 2025-11-29 08:26:37 -08:00
parent 3d8a23fd2f
commit 28e6dfe959
1 changed files with 6 additions and 4 deletions

View File

@ -31,12 +31,14 @@ void loop () {
}
if (open_running && !intval2.IsOpening()) {
mc.confirm(mc.CAMERA_OPEN);
mc.log("camera_open()");
open_running = false;
}
if (close_running && !intval2.IsClosing()) {
mc.confirm(mc.CAMERA_CLOSE);
mc.log("camera_close()");
close_running = false;
}
}
@ -52,10 +54,10 @@ void cmd (char val) {
SetDirection(false);
} else if (val == mc.CAMERA_OPEN) {
open_running = true;
//CameraOpen();
intval2.Open();
} else if (val == mc.CAMERA_CLOSE) {
close_running = true;
//CameraClose();
intval2.Close();
} else if (val == mc.CAMERA_EXPOSURE) {
SetExposure();
} else if (val == mc.STATE) {