mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 10:37:26 -05:00
Resolves issue with missing case statements in talkgroup format classes. (#509)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user