diff options
author | michalprusa <git@michalprusa.cz> | 2016-08-11 11:42:53 +0300 |
---|---|---|
committer | michalprusa <git@michalprusa.cz> | 2016-08-11 11:42:53 +0300 |
commit | 307d17422d166e1a663cf7201be2ac75f775a42f (patch) | |
tree | 7bdfd5ddd6af602c9318f6c814668f2c7de56578 /Firmware/stepper.cpp | |
parent | 30f0528aba00e5949496f4fe7adcbef5b5a18b5c (diff) |
3.0.6 sync
Diffstat (limited to 'Firmware/stepper.cpp')
-rw-r--r--[-rwxr-xr-x] | Firmware/stepper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Firmware/stepper.cpp b/Firmware/stepper.cpp index cce0b313b..6bfea2a61 100755..100644 --- a/Firmware/stepper.cpp +++ b/Firmware/stepper.cpp @@ -1030,7 +1030,7 @@ void babystep(const uint8_t axis,const bool direction) //perform step WRITE(X_STEP_PIN, !INVERT_X_STEP_PIN); { - float x=1./float(axis+1)/float(axis+2); //wait a tiny bit + volatile float x=1./float(axis+1)/float(axis+2); //wait a tiny bit } WRITE(X_STEP_PIN, INVERT_X_STEP_PIN); @@ -1049,7 +1049,7 @@ void babystep(const uint8_t axis,const bool direction) //perform step WRITE(Y_STEP_PIN, !INVERT_Y_STEP_PIN); { - float x=1./float(axis+1)/float(axis+2); //wait a tiny bit + volatile float x=1./float(axis+1)/float(axis+2); //wait a tiny bit } WRITE(Y_STEP_PIN, INVERT_Y_STEP_PIN); @@ -1075,7 +1075,7 @@ void babystep(const uint8_t axis,const bool direction) #endif //wait a tiny bit { - float x=1./float(axis+1); //absolutely useless + volatile float x=1./float(axis+1); //absolutely useless } WRITE(Z_STEP_PIN, INVERT_Z_STEP_PIN); #ifdef Z_DUAL_STEPPER_DRIVERS |