From 8d7e0e9f468a2d07a7ad8590fd4980f062d5f084 Mon Sep 17 00:00:00 2001 From: Denny Sheirer Date: Sat, 11 Jan 2020 06:13:44 -0500 Subject: [PATCH] #641 Updates P25 Talkgroup and Radio Id valid ranges to allow value of 0. (#642) --- .../dsheirer/alias/id/radio/RadioFormat.java | 6 ++-- .../alias/id/talkgroup/TalkgroupFormat.java | 34 ++++++++++--------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/main/java/io/github/dsheirer/alias/id/radio/RadioFormat.java b/src/main/java/io/github/dsheirer/alias/id/radio/RadioFormat.java index 3127f895..af347f96 100644 --- a/src/main/java/io/github/dsheirer/alias/id/radio/RadioFormat.java +++ b/src/main/java/io/github/dsheirer/alias/id/radio/RadioFormat.java @@ -1,7 +1,7 @@ /* * * * ****************************************************************************** - * * Copyright (C) 2014-2019 Dennis Sheirer + * * Copyright (C) 2014-2020 Dennis Sheirer * * * * 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 @@ -34,8 +34,8 @@ import io.github.dsheirer.protocol.Protocol; */ public enum RadioFormat { - APCO25("********", 1, 0xFFFFFF, "1 to 16,777,215", - "APCO25 valid range is 1 to 16,777,215"), + APCO25("********", 0, 0xFFFFFF, "0 to 16,777,215", + "APCO25 valid range is 0 to 16,777,215"), UNKNOWN("********", 1, 0xFFFFFF, "1 to 16,777,215", "Unknown protocol valid value range is 1-16,777,215"); diff --git a/src/main/java/io/github/dsheirer/alias/id/talkgroup/TalkgroupFormat.java b/src/main/java/io/github/dsheirer/alias/id/talkgroup/TalkgroupFormat.java index e904cf00..236a35e3 100644 --- a/src/main/java/io/github/dsheirer/alias/id/talkgroup/TalkgroupFormat.java +++ b/src/main/java/io/github/dsheirer/alias/id/talkgroup/TalkgroupFormat.java @@ -1,21 +1,23 @@ /* - * ****************************************************************************** - * sdrtrunk - * Copyright (C) 2014-2019 Dennis Sheirer * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * * ****************************************************************************** + * * Copyright (C) 2014-2020 Dennis Sheirer + * * + * * 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 + * * the Free Software Foundation, either version 3 of the License, or + * * (at your option) any later version. + * * + * * This program is distributed in the hope that it will be useful, + * * but WITHOUT ANY WARRANTY; without even the implied warranty of + * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * * GNU General Public License for more details. + * * + * * You should have received a copy of the GNU General Public License + * * along with this program. If not, see + * * ***************************************************************************** * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see - * ***************************************************************************** */ package io.github.dsheirer.alias.id.talkgroup; @@ -32,8 +34,8 @@ import io.github.dsheirer.protocol.Protocol; */ public enum TalkgroupFormat { - APCO25("********", 1, 0xFFFFFF, "1 to 16,777,215", - "APCO25 valid range is 1 to 65,535(talkgroup)
or 1 to 16,777,215 (radio ID)"), + APCO25("********", 0, 0xFFFFFF, "0 to 65,535", + "APCO25 talkgroup valid range is 0 to 65,535"), FLEETSYNC("###-####", 1, 0x7FFFFF, "001-0001 to 127-8192", "Fleetsync valid ranges are 1-127(prefix)
and 1-8192(ident) (ie. 001-0001 to 127-8192)"), LTR("##-###", 257, 5375, "01-001 to 20-255",