Skip to content
Snippets Groups Projects
Commit 97adfa78 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

stm32: use cpuid_address' address, not the value

We're interested in the address of `cpuid_address`, not the value it is pointing, too.
parent c6eb2180
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment