diff --git a/shade_controller/functions.h b/shade_controller/functions.h index 835c7c2..5b59750 100644 --- a/shade_controller/functions.h +++ b/shade_controller/functions.h @@ -176,7 +176,7 @@ bool timerFunc(int _comp) { } void checkInvert() { - if (inverMotor[0] ~= invertMotor[1]) { + if (invertMotor[0] != invertMotor[1]) { for (int i=1;i<3;i++) { shade[i] = shade[i]*-1; }