Update hwUniqueID() function (#921)

This commit is contained in:
Olivier
2017-09-04 23:37:11 +02:00
committed by Henrik Ekblad
parent d74e9bd212
commit a9ef29fa67
4 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/**
/**
* The MySensors Arduino library handles the wireless radio link and protocol
* between your home built sensors/actuators and HA controller of choice.
* The sensors forms a self healing radio network with optional repeaters. Each
@@ -92,7 +92,7 @@ bool hwUniqueID(unique_id_t *uniqueID)
{
#if defined(__MKL26Z64__)
(void)memcpy((uint8_t*)uniqueID, &SIM_UIDMH, 12);
(void)memset((uint8_t*)uniqueID + 12, 0, 4);
(void)memset((uint8_t*)uniqueID + 12, MY_HWID_PADDING_BYTE, 4);
#else
(void)memcpy((uint8_t*)uniqueID, &SIM_UIDH, 16);
#endif