From 051f03119b2187a86df95a97cb677b7fce9474d1 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Wed, 3 Feb 2021 19:18:54 +0100 Subject: [PATCH] Fix misleading indentation warnings by expanding tabs --- Firmware/Marlin_main.cpp | 2 +- Firmware/pat9125.c | 4 ++-- Firmware/sound.cpp | 2 +- Firmware/tmc2130.cpp | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index b5f4a4ab..2111686f 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -8849,7 +8849,7 @@ Sigma_Exit: bool load_to_nozzle = false; for (index = 1; *(strchr_pointer + index) == ' ' || *(strchr_pointer + index) == '\t'; index++); - *(strchr_pointer + index) = tolower(*(strchr_pointer + index)); + *(strchr_pointer + index) = tolower(*(strchr_pointer + index)); if ((*(strchr_pointer + index) < '0' || *(strchr_pointer + index) > '4') && *(strchr_pointer + index) != '?' && *(strchr_pointer + index) != 'x' && *(strchr_pointer + index) != 'c') { SERIAL_ECHOLNPGM("Invalid T code."); diff --git a/Firmware/pat9125.c b/Firmware/pat9125.c index 58308a9a..ea22c015 100644 --- a/Firmware/pat9125.c +++ b/Firmware/pat9125.c @@ -131,8 +131,8 @@ uint8_t pat9125_init(void) if (!pat9125_probe()) return 0; - // Verify that the sensor responds with its correct product ID. - pat9125_PID1 = pat9125_rd_reg(PAT9125_PID1); + // Verify that the sensor responds with its correct product ID. + pat9125_PID1 = pat9125_rd_reg(PAT9125_PID1); pat9125_PID2 = pat9125_rd_reg(PAT9125_PID2); if ((pat9125_PID1 != 0x31) || (pat9125_PID2 != 0x91)) { diff --git a/Firmware/sound.cpp b/Firmware/sound.cpp index bf10271e..f4c6ee1d 100644 --- a/Firmware/sound.cpp +++ b/Firmware/sound.cpp @@ -129,7 +129,7 @@ switch(eSoundMode) Sound_DoSound_Encoder_Move(); if(eSoundType==e_SOUND_TYPE_BlindAlert) Sound_DoSound_Blind_Alert(); - break; + break; default: break; } diff --git a/Firmware/tmc2130.cpp b/Firmware/tmc2130.cpp index a62268f0..dbce5ea0 100755 --- a/Firmware/tmc2130.cpp +++ b/Firmware/tmc2130.cpp @@ -826,11 +826,11 @@ void tmc2130_do_steps(uint8_t axis, uint16_t steps, uint8_t dir, uint16_t delay_ { if (tmc2130_get_dir(axis) != dir) tmc2130_set_dir(axis, dir); - while (steps--) - { + while (steps--) + { tmc2130_do_step(axis); delayMicroseconds(delay_us); - } + } } void tmc2130_goto_step(uint8_t axis, uint8_t step, uint8_t dir, uint16_t delay_us, uint16_t microstep_resolution)