diff options
author | PavelSindler <pavel@prusa3d.cz> | 2018-03-01 16:49:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-01 16:49:13 +0300 |
commit | 644c4f771b16427657e6560a6fc0dfd84b701cd3 (patch) | |
tree | 5f7a1229b0b181c3bea06abf71715a9477075001 | |
parent | d94ee6dca138ffffe55fe5cc6071074709c66747 (diff) | |
parent | fb8a28d1208cb03d824577d9ea6b1ef44952e585 (diff) |
Merge pull request #509 from XPila/MK3
bugfix - beltstatus overflow
-rw-r--r-- | Firmware/tmc2130.cpp | 2 | ||||
-rw-r--r-- | Firmware/tmc2130.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Firmware/tmc2130.cpp b/Firmware/tmc2130.cpp index 109712bda..58f84cf43 100644 --- a/Firmware/tmc2130.cpp +++ b/Firmware/tmc2130.cpp @@ -50,7 +50,7 @@ uint8_t tmc2130_sg_thr_home[4] = {3, 3, TMC2130_SG_THRS_Z, TMC2130_SG_THRS_E}; uint8_t sg_homing_axes_mask = 0x00; uint8_t tmc2130_sg_meassure = 0xff; -uint16_t tmc2130_sg_meassure_cnt = 0; +uint32_t tmc2130_sg_meassure_cnt = 0; uint32_t tmc2130_sg_meassure_val = 0; uint8_t tmc2130_home_enabled = 0; diff --git a/Firmware/tmc2130.h b/Firmware/tmc2130.h index 6dd9f59d1..4f93a0c37 100644 --- a/Firmware/tmc2130.h +++ b/Firmware/tmc2130.h @@ -17,7 +17,7 @@ extern bool tmc2130_sg_stop_on_crash; extern uint8_t tmc2130_sg_crash; //crash mask extern uint8_t tmc2130_sg_meassure; -extern uint16_t tmc2130_sg_meassure_cnt; +extern uint32_t tmc2130_sg_meassure_cnt; extern uint32_t tmc2130_sg_meassure_val; #define TMC2130_MODE_NORMAL 0 |