raspi: fix serial number parsing

This commit is contained in:
Matthias Ringwald 2018-07-26 11:30:30 +02:00
parent 11e995b1e9
commit 1b6b55df47

View File

@ -137,7 +137,7 @@ static int raspi_get_bd_addr(bd_addr_t addr){
fprintf(stderr, "can't read serial number, %s\n", strerror( errno ) );
return -1;
}
fscanf( fd, "%*08u" "%*02u" "%02" SCNx8 "%02" SCNx8 "%02" SCNx8, &addr[3], &addr[4], &addr[5] );
fscanf( fd, "%*08x" "%*02x" "%02" SCNx8 "%02" SCNx8 "%02" SCNx8, &addr[3], &addr[4], &addr[5] );
fclose( fd );
addr[0] = 0xb8; addr[1] = 0x27; addr[2] = 0xeb;