The old code was never working, all of the middle address bytes were set to 0x00 because of the bitwise AND being executed after the right shift.
The old code was never working, all of the middle address bytes were set to 0x00 because of the bitwise AND being executed after the right shift.