no need to overcomplicate setting the ARC4 offset

4.32j_maint
firealarmss 11 months ago
parent 6fa6c22136
commit 28ebb1a939

@ -309,11 +309,8 @@ namespace fnecore.P25
/// <returns></returns>
private bool ARC4Process(byte[] imbe, P25DUID duid)
{
int offset = 256;
if (duid == P25DUID.LDU1)
offset = 0;
else if (duid == P25DUID.LDU2)
int offset = 0;
if (duid == P25DUID.LDU2)
offset = 101;
offset += (ksPosition * IMBE_BUF_LEN) + 267 + (ksPosition < 8 ? 0 : 2);

Loading…
Cancel
Save

Powered by TurnKey Linux.