Allow overriding get_hardware_id()
. (#24051)
This commit is contained in:
parent
cd22b8a945
commit
3a711f4cfa
3 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
#include <avr/boot.h>
|
||||
#include "hardware_id.h"
|
||||
|
||||
hardware_id_t get_hardware_id(void) {
|
||||
__attribute__((weak)) hardware_id_t get_hardware_id(void) {
|
||||
hardware_id_t id = {0};
|
||||
for (uint8_t i = 0; i < 10; i += 1) {
|
||||
((uint8_t*)&id)[i] = boot_signature_byte_get(i + 0x0E);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue