]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/comp.c
Commutation function now implemented with use of polymorphism.
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / comp.c
index 49d354659af0054a91f8f0d0679b38bc4f58b462..764726acc4ae46c09a1dc2848e1447517988a009 100644 (file)
@@ -92,7 +92,7 @@ void comIndDist(struct rpi_state* this){
        return;
 
        index_lost:
-               this->index_ok=0;
+               setIndexLost(this);
                return;
 }