kopia lustrzana https://github.com/rs1729/RS
M10 SN: oder so
rodzic
b82727fdc9
commit
35e47f2cac
|
@ -552,7 +552,8 @@ int get_SN() {
|
|||
byte = sn_bytes[2];
|
||||
sprintf(datum.SN, "%1X%02u", (byte>>4)&0xF, byte&0xF);
|
||||
byte = sn_bytes[3] | (sn_bytes[4]<<8);
|
||||
sprintf(datum.SN+3, " %1X _%04u", (byte>>12)&0xF, byte&0xFFF);
|
||||
//sprintf(datum.SN+3, " %1X _%04u", (byte>>12)&0xF, byte&0xFFF);
|
||||
sprintf(datum.SN+3, " _ %1u%04u", (byte>>13)&0x7, byte&0x1FFF);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue