Motor Turn Off only when transparency is 0

This commit is contained in:
Paul Zinselmeyer 2022-05-28 23:45:56 +02:00
parent b9ed77b61f
commit 27d0b4c67d
Signed by: pfzetto
GPG Key ID: 4EEF46A5B276E648
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ void loop() {
break;
}
}
if(!stepper[i].isRunning() && (targetPosition[i] == 100 || targetPosition[i] == 0)){
if(!stepper[i].isRunning() && (targetPosition[i] == 100 || targetPosition[i] == 0) && targetTransparency[i] == 0){
digitalWrite(stepperPinDefinitions[i][0], HIGH);
}else{
digitalWrite(stepperPinDefinitions[i][0], LOW);