瀏覽代碼

whitespace

Scott Lahteine 3 年之前
父節點
當前提交
54ccfcc705
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1
    1
      Marlin/src/HAL/STM32/HAL.cpp
  2. 2
    2
      buildroot/share/PlatformIO/scripts/common-cxxflags.py
  3. 1
    1
      platformio.ini

+ 1
- 1
Marlin/src/HAL/STM32/HAL.cpp 查看文件

@@ -63,7 +63,7 @@ TERN_(POSTMORTEM_DEBUGGING, extern void install_min_serial());
63 63
 void HAL_init() {
64 64
   FastIO_init();
65 65
 
66
-  // Ensure F_CPU is a constant expression. 
66
+  // Ensure F_CPU is a constant expression.
67 67
   // If the compiler breaks here, it means that delay code that should compute at compile time will not work.
68 68
   // So better safe than sorry here.
69 69
   constexpr int cpuFreq = F_CPU;

+ 2
- 2
buildroot/share/PlatformIO/scripts/common-cxxflags.py 查看文件

@@ -28,8 +28,8 @@ def add_cpu_freq():
28 28
 if env.GetBuildType() == "debug":
29 29
 	env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
30 30
 
31
-# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns 
32
-# to CPU cycles, this adds overhead preventing small delay (in the order of less than 
31
+# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns
32
+# to CPU cycles, this adds overhead preventing small delay (in the order of less than
33 33
 # 30 cycles) to be generated correctly. By using a compile time constant instead
34 34
 # the compiler will perform the computation and this overhead will be avoided
35 35
 add_cpu_freq()

+ 1
- 1
platformio.ini 查看文件

@@ -1344,7 +1344,7 @@ build_flags       = ${common_stm32.build_flags}
1344 1344
 extends           = env:BIGTREE_GTR_V1_0
1345 1345
 platform_packages = ${stm32_flash_drive.platform_packages}
1346 1346
 build_unflags     = -DUSBCON -DUSBD_USE_CDC
1347
-build_flags       = ${stm32_flash_drive.build_flags} 
1347
+build_flags       = ${stm32_flash_drive.build_flags}
1348 1348
   -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
1349 1349
 
1350 1350
 #

Loading…
取消
儲存