Fixed typo in Pins() where PROJECTOR_FWD was set to LOW twice instead of PROJECTOR_BWD.

This commit is contained in:
sixteenmillimeter 2020-09-28 23:47:36 -04:00
parent 08c3c23da0
commit 9502d255c7
1 changed files with 3 additions and 3 deletions

View File

@ -140,12 +140,12 @@ void pins () {
pinMode(PROJECTOR_BWD, OUTPUT);
pinMode(PROJECTOR_ON, OUTPUT);
//SET LOW
//SET DEFAULT
digitalWrite(CAMERA, HIGH);
digitalWrite(CAMERA_DIR, HIGH);
digitalWrite(PROJECTOR_FWD, LOW);
digitalWrite(PROJECTOR_FWD, LOW);
digitalWrite(PROJECTOR_BWD, LOW);
digitalWrite(PROJECTOR_ON, LOW);
}
@ -268,7 +268,7 @@ void proj_microswitch () {
long now = millis();
if (!proj_primed && val != proj_micro_state && val == PROJECTOR_MICROSWITCH_OPENED) {
//prime
log("projector primed to stop");
log("proj_primed => true");
proj_micro_state = val;
proj_primed = true;
} else if (proj_primed && val != proj_micro_state