a.binder %!s(int64=5) %!d(string=hai) anos
pai
achega
b750055cd8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SE/stuff/P5_Automation_can-dev-res/_ROTTARY_SW_func.h

+ 1 - 1
SE/stuff/P5_Automation_can-dev-res/_ROTTARY_SW_func.h

@@ -24,7 +24,7 @@ void ROTTARY_SW_dt_INT() {
     aFlag = 0; //reset flags for the next turn
     
   }  else if (reading1  == 0 and reading2  == 1) {
-   aFlag = 1; //signal that we're expecting pinA to signal the transition to detent from free rotation
+   bFlag = 1; //signal that we're expecting pinA to signal the transition to detent from free rotation
   }
   sei(); //restart interrupts
   Serial.print("dt_: #[");  Serial.print(encoderPos); Serial.print("] R1[");  Serial.print(reading1); Serial.print("] R2[");  Serial.print(reading2); Serial.print("] aFlag["); Serial.print(aFlag);   Serial.print("] bFlag["); Serial.print(bFlag);