mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 18:43:51 +00:00
feat(dmr): decode CACH and slot type
This commit is contained in:
+8
-3
@@ -3587,14 +3587,19 @@ end;
|
||||
function TMainForm.DMRStatusText: string;
|
||||
var
|
||||
S: TDMRStatus;
|
||||
Inv: string;
|
||||
Inv, Details: string;
|
||||
begin
|
||||
if not FController.GetDMRStatus(S) then Exit('DMR unavailable');
|
||||
if not S.Enabled then Exit('DMR off');
|
||||
if not S.Synced then Exit(Format('DMR sync... %.3f', [S.SignalRMS]));
|
||||
if S.Inverted then Inv := ' INV' else Inv := '';
|
||||
Result := Format('DMR %s%s #%d',
|
||||
[TDMRDecoder.SyncKindName(S.SyncKind), Inv, S.SyncCount]);
|
||||
Details := '';
|
||||
if S.CACHValid then Details := Format(' TS%d', [S.Slot + 1]);
|
||||
if S.SlotTypeValid then
|
||||
Details := Details + Format(' CC%d/DT%d', [S.ColorCode, S.DataType]);
|
||||
Result := Format('DMR %s%s%s #%d',
|
||||
[TDMRDecoder.SyncKindName(S.SyncKind), Details, Inv,
|
||||
S.SyncCount]);
|
||||
end;
|
||||
|
||||
procedure TMainForm.UpdateStatusField7;
|
||||
|
||||
Reference in New Issue
Block a user