Browse Source

🔨 Fix 'val' value in schema.py

Scott Lahteine 3 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
 							'sid': sid
294
 							'sid': sid
295
 						}
295
 						}
296
 
296
 
297
-						if val != '': define_info['value'] = val
298
-
299
 						# Type is based on the value
297
 						# Type is based on the value
300
 						if val == '':
298
 						if val == '':
301
 							value_type = 'switch'
299
 							value_type = 'switch'
318
 									else 'array'	if val[0] == '{' \
316
 									else 'array'	if val[0] == '{' \
319
 									else ''
317
 									else ''
320
 
318
 
319
+						if val != '': define_info['value'] = val
321
 						if value_type != '': define_info['type'] = value_type
320
 						if value_type != '': define_info['type'] = value_type
322
 
321
 
323
 						# Join up accumulated conditions with &&
322
 						# Join up accumulated conditions with &&

Loading…
Cancel
Save