Resolves issue with missing case statements in talkgroup format classes. (#509)

This commit is contained in:
Denny Sheirer
2019-01-26 11:11:41 +00:00
committed by GitHub
parent 2653dc6b38
commit d601cbda0e
3 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
/* /*
* ****************************************************************************** * ******************************************************************************
* sdrtrunk * sdrtrunk
* Copyright (C) 2014-2018 Dennis Sheirer * Copyright (C) 2014-2019 Dennis Sheirer
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@@ -42,6 +42,7 @@ public class APCO25TalkgroupFormatter extends IntegerFormatter
switch(format) switch(format)
{ {
case DECIMAL: case DECIMAL:
case FORMATTED:
return toDecimal(identifier.getValue(), return toDecimal(identifier.getValue(),
(identifier.isGroup() ? GROUP_DECIMAL_WIDTH : UNIT_DECIMAL_WIDTH)); (identifier.isGroup() ? GROUP_DECIMAL_WIDTH : UNIT_DECIMAL_WIDTH));
case HEXADECIMAL: case HEXADECIMAL:

View File

@@ -38,6 +38,7 @@ public class MDC1200TalkgroupFormatter extends IntegerFormatter
switch(format) switch(format)
{ {
case DECIMAL: case DECIMAL:
case FORMATTED:
return toDecimal(identifier.getValue(), DECIMAL_WIDTH); return toDecimal(identifier.getValue(), DECIMAL_WIDTH);
case HEXADECIMAL: case HEXADECIMAL:
return toHex(identifier.getValue(), HEXADECIMAL_WIDTH); return toHex(identifier.getValue(), HEXADECIMAL_WIDTH);

View File

@@ -38,6 +38,7 @@ public class PassportTalkgroupFormatter extends IntegerFormatter
switch(format) switch(format)
{ {
case DECIMAL: case DECIMAL:
case FORMATTED:
return toDecimal(identifier.getValue(), DECIMAL_WIDTH); return toDecimal(identifier.getValue(), DECIMAL_WIDTH);
case HEXADECIMAL: case HEXADECIMAL:
return toHex(identifier.getValue(), HEXADECIMAL_WIDTH); return toHex(identifier.getValue(), HEXADECIMAL_WIDTH);