[WIP] Updates the passport decoder to use the new LTRDecoder.

Deprecates the Listener<Boolean> interface method in the MessageFramer
to optimize for primitive booleans and reduce impact on memory.  Will
remove this interface once the AFSK1200 decoders are updated.
This commit is contained in:
Denny
2018-06-02 09:31:49 -04:00
parent a898be265f
commit e4209c8e4f
6 changed files with 65 additions and 344 deletions

View File

@@ -66,8 +66,7 @@ public class MessageFramer implements Listener<Boolean>, SyncDetectProvider
mMessageAssemblers.clear();
}
@Override
public void receive(Boolean bit)
public void receive(boolean bit)
{
mMatcher.receive(bit);
@@ -105,6 +104,13 @@ public class MessageFramer implements Listener<Boolean>, SyncDetectProvider
}
}
@Deprecated //Legacy support ... remove once all producers are converted to use receive(boolean bit) method
@Override
public void receive(Boolean bit)
{
receive(bit);
}
/**
* Causes all messages currently under assembly to be forcibly
* sent (ie flushed) to all registered message listeners, and