Skip to content

Commit

Permalink
#2076 DMR CapMax Network and Site vales off by one. (#2077)
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis Sheirer <[email protected]>
  • Loading branch information
DSheirer and Dennis Sheirer authored Nov 2, 2024
1 parent b615c1e commit e4be7dc
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* *****************************************************************************
* Copyright (C) 2014-2020 Dennis Sheirer
* Copyright (C) 2014-2024 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
Expand Down Expand Up @@ -97,16 +97,16 @@ public DMRNetwork getNetwork()
switch(getModel())
{
case TINY:
mNetwork = new DMRNetwork(getMessage().getInt(TINY_NET, getOffset()));
mNetwork = new DMRNetwork(getMessage().getInt(TINY_NET, getOffset()) + 1);
break;
case SMALL:
mNetwork = new DMRNetwork(getMessage().getInt(SMALL_NET, getOffset()));
mNetwork = new DMRNetwork(getMessage().getInt(SMALL_NET, getOffset()) + 1);
break;
case LARGE:
mNetwork = new DMRNetwork(getMessage().getInt(LARGE_NET, getOffset()));
mNetwork = new DMRNetwork(getMessage().getInt(LARGE_NET, getOffset()) + 1);
break;
case HUGE:
mNetwork = new DMRNetwork(getMessage().getInt(HUGE_NET, getOffset()));
mNetwork = new DMRNetwork(getMessage().getInt(HUGE_NET, getOffset()) + 1);
break;
}
}
Expand All @@ -124,16 +124,16 @@ public DMRSite getSite()
switch(getModel())
{
case TINY:
mSite = new DMRSite(getMessage().getInt(TINY_SITE, getOffset()));
mSite = new DMRSite(getMessage().getInt(TINY_SITE, getOffset()) + 1);
break;
case SMALL:
mSite = new DMRSite(getMessage().getInt(SMALL_SITE, getOffset()));
mSite = new DMRSite(getMessage().getInt(SMALL_SITE, getOffset()) + 1);
break;
case LARGE:
mSite = new DMRSite(getMessage().getInt(LARGE_SITE, getOffset()));
mSite = new DMRSite(getMessage().getInt(LARGE_SITE, getOffset()) + 1);
break;
case HUGE:
mSite = new DMRSite(getMessage().getInt(HUGE_SITE, getOffset()));
mSite = new DMRSite(getMessage().getInt(HUGE_SITE, getOffset()) + 1);
break;
}
}
Expand Down

0 comments on commit e4be7dc

Please sign in to comment.