We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74435b0 commit 5c68d26Copy full SHA for 5c68d26
1 file changed
buildroot/share/PlatformIO/scripts/preflight-checks.py
@@ -60,10 +60,10 @@ def sanity_check_target():
60
raise SystemExit("Error: Marlin requires PlatformIO >= 6.1.1. Use 'pio upgrade' to get a newer version.")
61
62
if 'MARLIN_FEATURES' not in env:
63
- raise SystemExit("Error: this script should be used after common Marlin scripts")
+ raise SystemExit("Error: this script should be used after common Marlin scripts.")
64
65
- if 'MOTHERBOARD' not in env['MARLIN_FEATURES']:
66
- raise SystemExit("Error: MOTHERBOARD is not defined in Configuration.h")
+ if len(env['MARLIN_FEATURES']) == 0:
+ raise SystemExit("Error: Failed to parse Marlin features. See previous error messages.")
67
68
build_env = env['PIOENV']
69
motherboard = env['MARLIN_FEATURES']['MOTHERBOARD']
0 commit comments