klipper-flash: fix getConfigField matching commented out values (#533030)

This commit is contained in:
Cabia Rangris
2026-06-18 17:17:13 +00:00
committed by GitHub
+1 -1
View File
@@ -17,7 +17,7 @@ let
field:
with builtins;
let
matches = match ''^.*${field}="([a-zA-Z0-9_]+)".*$'' (readFile firmwareConfig);
matches = match ''^[^#\r\n]*${field}="([a-zA-Z0-9_]+)".*$'' (readFile firmwareConfig);
in
if matches != null then head matches else null;
matchPlatform = getConfigField "CONFIG_BOARD_DIRECTORY";