config:fix

This commit is contained in:
alfrix 2022-09-09 11:32:44 -03:00
parent de540402ec
commit 069097d2e0

View File

@ -112,12 +112,11 @@ class KlipperScreenConfig:
def validate_config(self):
valid = True
bools = strs = numbers = ()
for section in self.config:
if section == 'DEFAULT' or section.startswith('include '):
# Do not validate 'DEFAULT' or 'include*' sections
continue
bools = strs = numbers = ()
if section == 'main':
bools = (
'invert_x', 'invert_y', 'invert_z', '24htime', 'only_heaters', 'show_cursor', 'confirm_estop',