瀏覽代碼

🎨 misc. cleanup

Scott Lahteine 3 年之前
父節點
當前提交
2dcfa140e9
共有 2 個檔案被更改,包括 5 行新增6 行删除
  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 查看文件

303
 // This cannot yet account for timers used for PWM output, such as for fans.
303
 // This cannot yet account for timers used for PWM output, such as for fans.
304
 static constexpr struct { TimerPurpose p; int t; } timers_in_use[] = {
304
 static constexpr struct { TimerPurpose p; int t; } timers_in_use[] = {
305
   #if HAS_TMC_SW_SERIAL
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
   #endif
307
   #endif
308
   #if ENABLED(SPEAKER)
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
   #endif
310
   #endif
311
   #if HAS_SERVOS
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
   #endif
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
 static constexpr bool verify_no_timer_conflicts() {
318
 static constexpr bool verify_no_timer_conflicts() {

+ 0
- 1
Marlin/src/module/motion.cpp 查看文件

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

Loading…
取消
儲存