aboutsummaryrefslogtreecommitdiff
path: root/platforms/chibios
diff options
context:
space:
mode:
authorNick Brassel <[email protected]>2024-10-06 21:44:36 +1300
committerGitHub <[email protected]>2024-10-06 21:44:36 +1300
commit305e7baa71ccecf8c126863a7f439361dd9cc750 (patch)
treeee3cd9148d8545bfa2daa523c93cb959fd396a6f /platforms/chibios
parent65b5dc7e0f73ffb9983ab1ad3f2e2494a6c090d4 (diff)
downloadqmk_firmware-305e7baa71ccecf8c126863a7f439361dd9cc750.tar.gz
qmk_firmware-305e7baa71ccecf8c126863a7f439361dd9cc750.zip
Allow for `get_hardware_id()` to be used for serial number. (#24053)
* Allow for `get_hardware_id()` to be used for serial number. * Length checks. * Explain length. * Cleanup. * Preprocessor magic. * Use the force, Batman. * Swap logic; if SERIAL_NUMBER is defined use that, otherwise derive it. * Cleanup. * Cleanup.
Diffstat (limited to 'platforms/chibios')
-rw-r--r--platforms/chibios/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/platforms/chibios/config.h b/platforms/chibios/config.h
index 006415a5dc..a58479bb97 100644
--- a/platforms/chibios/config.h
+++ b/platforms/chibios/config.h
@@ -5,3 +5,7 @@
#ifndef CORTEX_ENABLE_WFI_IDLE
# define CORTEX_ENABLE_WFI_IDLE TRUE
#endif // CORTEX_ENABLE_WFI_IDLE
+
+#ifndef SERIAL_NUMBER_USE_HARDWARE_ID
+# define SERIAL_NUMBER_USE_HARDWARE_ID TRUE
+#endif // SERIAL_NUMBER_USE_HARDWARE_ID