Browse Source

🎨 misc. cleanup

Scott Lahteine 2 years ago
parent
commit
2dcfa140e9
2 changed files with 5 additions and 6 deletions
  1. 5
    5
      Marlin/src/HAL/STM32/timers.cpp
  2. 0
    1
      Marlin/src/module/motion.cpp

+ 5
- 5
Marlin/src/HAL/STM32/timers.cpp View File

@@ -303,16 +303,16 @@ enum TimerPurpose { TP_SERIAL, TP_TONE, TP_SERVO, TP_STEP, TP_TEMP };
303 303
 // This cannot yet account for timers used for PWM output, such as for fans.
304 304
 static constexpr struct { TimerPurpose p; int t; } timers_in_use[] = {
305 305
   #if HAS_TMC_SW_SERIAL
306
-    {TP_SERIAL, get_timer_num_from_base_address(timer_serial[0])},  // Set in variant.h, or as a define in platformio.h if not present in variant.h
306
+    { TP_SERIAL, get_timer_num_from_base_address(timer_serial[0]) }, // Set in variant.h, or as a define in platformio.h if not present in variant.h
307 307
   #endif
308 308
   #if ENABLED(SPEAKER)
309
-    {TP_TONE, get_timer_num_from_base_address(timer_tone[0])},    // Set in variant.h, or as a define in platformio.h if not present in variant.h
309
+    { TP_TONE, get_timer_num_from_base_address(timer_tone[0]) },     // Set in variant.h, or as a define in platformio.h if not present in variant.h
310 310
   #endif
311 311
   #if HAS_SERVOS
312
-    {TP_SERVO, get_timer_num_from_base_address(timer_servo[0])},   // Set in variant.h, or as a define in platformio.h if not present in variant.h
312
+    { TP_SERVO, get_timer_num_from_base_address(timer_servo[0]) },   // Set in variant.h, or as a define in platformio.h if not present in variant.h
313 313
   #endif
314
-  {TP_STEP, STEP_TIMER},
315
-  {TP_TEMP, TEMP_TIMER},
314
+  { TP_STEP, STEP_TIMER },
315
+  { TP_TEMP, TEMP_TIMER },
316 316
 };
317 317
 
318 318
 static constexpr bool verify_no_timer_conflicts() {

+ 0
- 1
Marlin/src/module/motion.cpp View File

@@ -241,7 +241,6 @@ void report_current_position_projected() {
241 241
 }
242 242
 
243 243
 #if ENABLED(AUTO_REPORT_POSITION)
244
-  //struct PositionReport { void report() { report_current_position_projected(); } };
245 244
   AutoReporter<PositionReport> position_auto_reporter;
246 245
 #endif
247 246
 

Loading…
Cancel
Save