Fix generate api (#13930)

* Add missing returncode to exit()

* fix the aozora/hotswap vendor id
This commit is contained in:
Zach White 2021-08-09 08:28:51 -07:00 committed by GitHub
parent 5eb0e406fd
commit e6c171bdd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
#include "config_common.h" #include "config_common.h"
/* USB Device descriptor parameter */ /* USB Device descriptor parameter */
#define VENDOR_ID 0xCATS #define VENDOR_ID 0xCA75
#define PRODUCT_ID 0x4014 #define PRODUCT_ID 0x4014
#define DEVICE_VER 0x0001 #define DEVICE_VER 0x0001
#define MANUFACTURER Salmon Cat Studio #define MANUFACTURER Salmon Cat Studio

View File

@ -71,7 +71,7 @@ def info_json(keyboard):
except jsonschema.ValidationError as e: except jsonschema.ValidationError as e:
json_path = '.'.join([str(p) for p in e.absolute_path]) json_path = '.'.join([str(p) for p in e.absolute_path])
cli.log.error('Invalid API data: %s: %s: %s', keyboard, json_path, e.message) cli.log.error('Invalid API data: %s: %s: %s', keyboard, json_path, e.message)
exit() exit(1)
# Make sure we have at least one layout # Make sure we have at least one layout
if not info_data.get('layouts'): if not info_data.get('layouts'):