Fix misleading indentation warnings by expanding tabs

This commit is contained in:
Yuri D'Elia 2021-02-03 19:18:54 +01:00 committed by DRracer
parent f2fe57bfc0
commit 051f03119b
4 changed files with 7 additions and 7 deletions

View File

@ -8849,7 +8849,7 @@ Sigma_Exit:
bool load_to_nozzle = false; bool load_to_nozzle = false;
for (index = 1; *(strchr_pointer + index) == ' ' || *(strchr_pointer + index) == '\t'; index++); 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') { 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."); SERIAL_ECHOLNPGM("Invalid T code.");

View File

@ -131,8 +131,8 @@ uint8_t pat9125_init(void)
if (!pat9125_probe()) if (!pat9125_probe())
return 0; return 0;
// Verify that the sensor responds with its correct product ID. // Verify that the sensor responds with its correct product ID.
pat9125_PID1 = pat9125_rd_reg(PAT9125_PID1); pat9125_PID1 = pat9125_rd_reg(PAT9125_PID1);
pat9125_PID2 = pat9125_rd_reg(PAT9125_PID2); pat9125_PID2 = pat9125_rd_reg(PAT9125_PID2);
if ((pat9125_PID1 != 0x31) || (pat9125_PID2 != 0x91)) if ((pat9125_PID1 != 0x31) || (pat9125_PID2 != 0x91))
{ {

View File

@ -129,7 +129,7 @@ switch(eSoundMode)
Sound_DoSound_Encoder_Move(); Sound_DoSound_Encoder_Move();
if(eSoundType==e_SOUND_TYPE_BlindAlert) if(eSoundType==e_SOUND_TYPE_BlindAlert)
Sound_DoSound_Blind_Alert(); Sound_DoSound_Blind_Alert();
break; break;
default: default:
break; break;
} }

View File

@ -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) if (tmc2130_get_dir(axis) != dir)
tmc2130_set_dir(axis, dir); tmc2130_set_dir(axis, dir);
while (steps--) while (steps--)
{ {
tmc2130_do_step(axis); tmc2130_do_step(axis);
delayMicroseconds(delay_us); delayMicroseconds(delay_us);
} }
} }
void tmc2130_goto_step(uint8_t axis, uint8_t step, uint8_t dir, uint16_t delay_us, uint16_t microstep_resolution) void tmc2130_goto_step(uint8_t axis, uint8_t step, uint8_t dir, uint16_t delay_us, uint16_t microstep_resolution)