mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-21 05:05:38 -05:00
EDACS: fix group patch shift size
This commit is contained in:
@@ -798,7 +798,7 @@ void edacs(dsd_opts * opts, dsd_state * state)
|
|||||||
else if (mt2 == 0xC)
|
else if (mt2 == 0xC)
|
||||||
{
|
{
|
||||||
//Note: First 9 bits of msg_1 are the mt1 and mt2 bits
|
//Note: First 9 bits of msg_1 are the mt1 and mt2 bits
|
||||||
int unk1 = (msg_1 & 0x70000) >> 20; //unknown 3 bit value preceeding the SGID
|
int unk1 = (msg_1 & 0x70000) >> 16; //unknown 3 bit value preceeding the SGID
|
||||||
int sgid = (msg_1 & 0xFFFF); //patched supergroup ID
|
int sgid = (msg_1 & 0xFFFF); //patched supergroup ID
|
||||||
|
|
||||||
//Updated Observation: The 'SSN' value may not be unique in this instance, so may be an entirely different value
|
//Updated Observation: The 'SSN' value may not be unique in this instance, so may be an entirely different value
|
||||||
@@ -809,8 +809,8 @@ void edacs(dsd_opts * opts, dsd_state * state)
|
|||||||
|
|
||||||
fprintf (stderr, "%s", KWHT);
|
fprintf (stderr, "%s", KWHT);
|
||||||
fprintf (stderr, " System Dynamic Regroup :: SGID [%05d] Target [%07d]", sgid, target);
|
fprintf (stderr, " System Dynamic Regroup :: SGID [%05d] Target [%07d]", sgid, target);
|
||||||
if (unk1) fprintf (stderr, " UNK1 [%01X]", unk1); //this value seems to always be zero
|
if (unk1) fprintf (stderr, " UNK1 [%01X]", unk1); //this value seems to always be 7 for an active patch, 0 for a termination of a patch
|
||||||
if (ssn) fprintf (stderr, " UNK2 [%02X]", ssn); //this may or may not be a unique value to each SGID
|
if (ssn) fprintf (stderr, " UNK2 [%02X]", ssn); //this may or may not be a unique value to each SGID, is FE for termination of a patch
|
||||||
fprintf (stderr, "%s", KNRM);
|
fprintf (stderr, "%s", KNRM);
|
||||||
}
|
}
|
||||||
//Serial Number Request (not seen in the wild, see US patent 20030190923, Figure 2b)
|
//Serial Number Request (not seen in the wild, see US patent 20030190923, Figure 2b)
|
||||||
|
|||||||
Reference in New Issue
Block a user