Parcourir la source

Fix misleading indentation warnings by expanding tabs

Yuri D'Elia il y a 3 ans
Parent
commit
051f03119b
4 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 1 1
      Firmware/Marlin_main.cpp
  2. 2 2
      Firmware/pat9125.c
  3. 1 1
      Firmware/sound.cpp
  4. 3 3
      Firmware/tmc2130.cpp

+ 1 - 1
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.");

+ 2 - 2
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))
 	{

+ 1 - 1
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;
      }

+ 3 - 3
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)