From 069097d2e0eae80b2ba8db5fc587a1e97081f63b Mon Sep 17 00:00:00 2001 From: alfrix Date: Fri, 9 Sep 2022 11:32:44 -0300 Subject: [PATCH] config:fix --- ks_includes/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ks_includes/config.py b/ks_includes/config.py index 893cec8c..a7b203c7 100644 --- a/ks_includes/config.py +++ b/ks_includes/config.py @@ -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',