From 6e7e701982c09b3f087da8872661a5c25a2b598f Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Tue, 19 Jan 2021 15:40:58 -0500 Subject: [PATCH] vial_generate_vfw: fix support for multiple config.h --- util/vial_generate_vfw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/vial_generate_vfw.py b/util/vial_generate_vfw.py index d4a713116f..9578fa74fe 100644 --- a/util/vial_generate_vfw.py +++ b/util/vial_generate_vfw.py @@ -18,6 +18,8 @@ def main(): uid = re.findall(r"#define.*VIAL_KEYBOARD_UID.*{(.*)}", line) if uid: break + if uid: + break if not uid: print("Cannot identify keyboard UID from configuration files {}, ensure that you have VIAL_KEYBOARD_UID defined!".format(configs)) return 1