Skip to content

Commit a615fe4

Browse files
committed
Merge pull request #210 from nomis52/uid
Set the UID to start from NNNN:1XXXXXXX
2 parents 5333d2e + a7a7f8c commit a615fe4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/uid_store.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ void UIDStore_Init() {
4848
// To support more than one responder per device, we set the lower 4 bits of
4949
// the UID to 0 so we have 16 responders per device. These means the complete
5050
// UID takes the form:
51-
// MMMM:0AAAAAA0
51+
// MMMM:1AAAAAA0
5252
// Where M is the PLASA manufacturer ID and A are the values from the MAC
5353
// address.
5454
kUIDArray[0] = CFG_MANUFACTURER_ID >> 8;
5555
kUIDArray[1] = CFG_MANUFACTURER_ID & 0xff;
56-
kUIDArray[2] = ShiftRight(PLIB_ETH_StationAddressGet(ETH_ID_0, 4));
56+
kUIDArray[2] = 0x10 + ShiftRight(PLIB_ETH_StationAddressGet(ETH_ID_0, 4));
5757
kUIDArray[3] = ShiftLeft(PLIB_ETH_StationAddressGet(ETH_ID_0, 4)) +
5858
ShiftRight(PLIB_ETH_StationAddressGet(ETH_ID_0, 5));
5959
kUIDArray[4] = ShiftLeft(PLIB_ETH_StationAddressGet(ETH_ID_0, 5)) +

0 commit comments

Comments
 (0)