Merge pull request #140 from pjao/master

Change caused by the - Fixing last byte of Embedded Data
This commit is contained in:
Kim - DG9VH 2017-04-06 06:13:55 +02:00 committed by GitHub
commit a6a61309b8

View file

@ -845,7 +845,9 @@ function decodeAlias($logLine) {
$tok4 = encode(substr($logLine, 49, 2)); $tok4 = encode(substr($logLine, 49, 2));
$tok5 = encode(substr($logLine, 52, 2)); $tok5 = encode(substr($logLine, 52, 2));
$tok6 = encode(substr($logLine, 55, 2)); $tok6 = encode(substr($logLine, 55, 2));
$tok7 = encode(dechex(hexdec(substr($logLine, 58, 2))/2)); // https://github.com/g4klx/MMDVMHost/commit/bba5cbc0bad65f32dde6f673255a05534ebc13ab
// $tok7 = encode(dechex(hexdec(substr($logLine, 58, 2))/2));
$tok7 = encode(substr($logLine, 58, 2));
return $tok1.$tok2.$tok3.$tok4.$tok5.$tok6.$tok7; return $tok1.$tok2.$tok3.$tok4.$tok5.$tok6.$tok7;
} }