From d8a14842c503ff8f050bcd09539ec0ff3a6c8ffd Mon Sep 17 00:00:00 2001 From: Voinea Dragos Date: Sun, 30 May 2021 11:34:38 +0300 Subject: [PATCH] Remove unused `skip_debug_msg` flag --- Firmware/tmc2130.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Firmware/tmc2130.cpp b/Firmware/tmc2130.cpp index dbce5ea07..71f2f44fb 100755 --- a/Firmware/tmc2130.cpp +++ b/Firmware/tmc2130.cpp @@ -71,8 +71,6 @@ uint16_t tmc2130_sg_cnt[4] = {0, 0, 0, 0}; bool tmc2130_sg_change = false; #endif -bool skip_debug_msg = false; - #define DBG(args...) //printf_P(args) #ifndef _n @@ -403,7 +401,6 @@ void tmc2130_check_overtemp() for (uint_least8_t i = 0; i < 4; i++) { uint32_t drv_status = 0; - skip_debug_msg = true; tmc2130_rd(i, TMC2130_REG_DRV_STATUS, &drv_status); if (drv_status & ((uint32_t)1 << 26)) { // BIT 26 - over temp prewarning ~120C (+-20C)