ソースを参照

🔨 Detect feature parsing error (#24824)

ellensp 1年前
コミット
a8f650079b
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更3行の追加3行の削除
  1. 3
    3
      buildroot/share/PlatformIO/scripts/preflight-checks.py

+ 3
- 3
buildroot/share/PlatformIO/scripts/preflight-checks.py ファイルの表示

@@ -60,10 +60,10 @@ if pioutil.is_pio_build():
60 60
             raise SystemExit("Error: Marlin requires PlatformIO >= 6.1.1. Use 'pio upgrade' to get a newer version.")
61 61
 
62 62
         if 'MARLIN_FEATURES' not in env:
63
-            raise SystemExit("Error: this script should be used after common Marlin scripts")
63
+            raise SystemExit("Error: this script should be used after common Marlin scripts.")
64 64
 
65
-        if 'MOTHERBOARD' not in env['MARLIN_FEATURES']:
66
-            raise SystemExit("Error: MOTHERBOARD is not defined in Configuration.h")
65
+        if len(env['MARLIN_FEATURES']) == 0:
66
+            raise SystemExit("Error: Failed to parse Marlin features. See previous error messages.")
67 67
 
68 68
         build_env = env['PIOENV']
69 69
         motherboard = env['MARLIN_FEATURES']['MOTHERBOARD']

読み込み中…
キャンセル
保存