Browse Source

🔨 Fix 'val' value in schema.py

Scott Lahteine 2 years ago
parent
commit
1a1db10634
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      buildroot/share/PlatformIO/scripts/schema.py

+ 1
- 2
buildroot/share/PlatformIO/scripts/schema.py View File

@@ -294,8 +294,6 @@ def extract():
294 294
 							'sid': sid
295 295
 						}
296 296
 
297
-						if val != '': define_info['value'] = val
298
-
299 297
 						# Type is based on the value
300 298
 						if val == '':
301 299
 							value_type = 'switch'
@@ -318,6 +316,7 @@ def extract():
318 316
 									else 'array'	if val[0] == '{' \
319 317
 									else ''
320 318
 
319
+						if val != '': define_info['value'] = val
321 320
 						if value_type != '': define_info['type'] = value_type
322 321
 
323 322
 						# Join up accumulated conditions with &&

Loading…
Cancel
Save