Adds event logging, code cleanup and some decoder issue resolution.

This commit is contained in:
denny
2015-09-02 19:41:44 -04:00
parent f4d8ea281d
commit 0f85b7260a
124 changed files with 469 additions and 1416 deletions

View File

@@ -27,7 +27,6 @@ import settings.ColorSetting;
import settings.Setting;
import settings.SettingsManager;
import alias.Alias;
import controller.channel.Channel;
public class PassportDecoderPanel extends DecoderPanel
{

View File

@@ -320,7 +320,7 @@ public class PassportDecoderState extends DecoderState
}
else
{
ArrayList<Integer> channels = new ArrayList( mSiteLCNs.keySet() );
ArrayList<Integer> channels = new ArrayList<>( mSiteLCNs.keySet() );
Collections.sort( channels );
for( Integer channel: channels )
@@ -339,7 +339,7 @@ public class PassportDecoderState extends DecoderState
}
else
{
ArrayList<Integer> channels = new ArrayList( mNeighborLCNs.keySet() );
ArrayList<Integer> channels = new ArrayList<>( mNeighborLCNs.keySet() );
Collections.sort( channels );
for( Integer channel: channels )

View File

@@ -285,17 +285,6 @@ public class PassportMessage extends Message
return mMessage.toString();
}
/**
* Returns a value formatted in hex notation.
*
* @param value - integer value
* @return - hex digits returned
*/
private static String getHex( int value, int digits )
{
return String.format( "%0" + digits + "X", value );
}
private int getInt( int[] bits )
{
int retVal = 0;