diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-17 12:18:50 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-17 12:18:50 +0100 |
commit | 5e247a5192548630342576adf8f58c6ad6f59bcb (patch) | |
tree | dba7baa9afab309358b170f32bcf8e841a84d836 /stmhal/modmachine.c | |
parent | 31f5dc065a6feb3205495f8b096aec9ebb0ccc5d (diff) | |
download | micropython-5e247a5192548630342576adf8f58c6ad6f59bcb.tar.gz micropython-5e247a5192548630342576adf8f58c6ad6f59bcb.zip |
stmhal: Fix machine.unique_id() function to work for all MCUs.
Diffstat (limited to 'stmhal/modmachine.c')
-rw-r--r-- | stmhal/modmachine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c index 7e2b1a63b8..1e4862044a 100644 --- a/stmhal/modmachine.c +++ b/stmhal/modmachine.c @@ -115,7 +115,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(machine_info_obj, 0, 1, machine_info); // Returns a string of 12 bytes (96 bits), which is the unique ID for the MCU. STATIC mp_obj_t machine_unique_id(void) { - byte *id = (byte*)0x1fff7a10; + byte *id = (byte*)MP_HAL_UNIQUE_ID_ADDRESS; return mp_obj_new_bytes(id, 12); } MP_DEFINE_CONST_FUN_OBJ_0(machine_unique_id_obj, machine_unique_id); |