From 5aae5a767f0659649b629cd7c8184ed58fb1c7b8 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Wed, 15 Sep 2021 08:49:51 +1000 Subject: [PATCH] Use the correct input type. --- lib/python/qmk/xap/gen_firmware/header_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/python/qmk/xap/gen_firmware/header_generator.py b/lib/python/qmk/xap/gen_firmware/header_generator.py index 66f01d1855..24dc8d3450 100755 --- a/lib/python/qmk/xap/gen_firmware/header_generator.py +++ b/lib/python/qmk/xap/gen_firmware/header_generator.py @@ -107,7 +107,7 @@ def generate_header(output_file, keyboard): lines.append(f'#define XAP_BCD_VERSION 0x{int(b.group(1)):02d}{int(b.group(2)):02d}{int(b.group(3)):04d}ul') b = prog.match(get_git_version()) lines.append(f'#define QMK_BCD_VERSION 0x{int(b.group(1)):02d}{int(b.group(2)):02d}{int(b.group(3)):04d}ul') - keyboard_id = fnv1a_32(keyboard) + keyboard_id = fnv1a_32(bytes(keyboard, 'utf-8')) lines.append(f'#define XAP_KEYBOARD_IDENTIFIER 0x{keyboard_id:08X}ul') lines.append('')