mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-15 02:37:48 -06:00
🔨 Fix 'val' value in schema.py
This commit is contained in:
parent
5b68a3f79b
commit
1a1db10634
1 changed files with 1 additions and 2 deletions
|
@ -294,8 +294,6 @@ def extract():
|
||||||
'sid': sid
|
'sid': sid
|
||||||
}
|
}
|
||||||
|
|
||||||
if val != '': define_info['value'] = val
|
|
||||||
|
|
||||||
# Type is based on the value
|
# Type is based on the value
|
||||||
if val == '':
|
if val == '':
|
||||||
value_type = 'switch'
|
value_type = 'switch'
|
||||||
|
@ -318,6 +316,7 @@ def extract():
|
||||||
else 'array' if val[0] == '{' \
|
else 'array' if val[0] == '{' \
|
||||||
else ''
|
else ''
|
||||||
|
|
||||||
|
if val != '': define_info['value'] = val
|
||||||
if value_type != '': define_info['type'] = value_type
|
if value_type != '': define_info['type'] = value_type
|
||||||
|
|
||||||
# Join up accumulated conditions with &&
|
# Join up accumulated conditions with &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue