#1907 Hytera GPS positions, XPT Adjacent site, and Hytera Talker Aliases. (#1908)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2024-05-04 18:27:54 -04:00
committed by GitHub
parent 5f082973eb
commit c50a914632
13 changed files with 387 additions and 19 deletions

View File

@@ -507,7 +507,7 @@ public class BinaryMessage extends BitSet
/**
* Indicates if the message field contains a non-zero value indicated by any bits set in the int field indices.
* @param intField to inspect
* @param fragmentedField to inspect
* @return true if any of the bits are set, indicating a non-zero value.
*/
public boolean hasInt(FragmentedIntField fragmentedField)
@@ -1057,14 +1057,14 @@ public class BinaryMessage extends BitSet
if(get(start))
{
//Negative value - flip and add one
BinaryMessage fragment = getSubMessage(start, end);
BinaryMessage fragment = getSubMessage(start, end + 1);
fragment.flip(0, fragment.size());
return fragment.getInt(1, fragment.size()) + 1;
return -(fragment.getInt(0, fragment.size() - 1) + 1);
}
else
{
//Positive value - return the contents.
return getInt(start + 1, end);
return getInt(start, end);
}
}