stm32: use cpuid_address' address, not the value
We're interested in the address of `cpuid_address`, not the value it is pointing, too.
This commit is contained in:
parent
c6eb21806b
commit
97adfa781e
@ -26,9 +26,9 @@
|
||||
|
||||
#include "periph/cpuid.h"
|
||||
|
||||
extern uint32_t *_cpuid_address;
|
||||
extern uint32_t _cpuid_address;
|
||||
|
||||
void cpuid_get(void *id)
|
||||
{
|
||||
memcpy(id, _cpuid_address, CPUID_LEN);
|
||||
memcpy(id, &_cpuid_address, CPUID_LEN);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user