Skip to content

Commit 231efdf

Browse files
author
Jonathan Naylor
committed
Clean up the OVCM CSBK code.
1 parent e74df48 commit 231efdf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

DMRCSBK.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (C) 2015,2016 by Jonathan Naylor G4KLX
3+
* Copyright (C) 2019 by Patrick Maier DK5MP
34
*
45
* This program is free software; you can redistribute it and/or modify
56
* it under the terms of the GNU General Public License as published by
@@ -156,17 +157,15 @@ bool CDMRCSBK::getOVCM() const
156157
// "Unit to Unit Voice Service Request CSBK" and
157158
// "Unit to Unit Voice Service Answer Response CSBK"
158159
if ((m_CSBKO == CSBKO_UUVREQ) || (m_CSBKO == CSBKO_UUANSRSP))
159-
{
160160
bOVCM = (m_data[2U] & 0x04U) == 0x04U;
161-
}
161+
162162
return bOVCM;
163163
}
164164

165165
void CDMRCSBK::setOVCM(bool ovcm)
166166
{
167167
// Set OVCM only in CSBKs having the service options information
168-
if ((m_CSBKO == CSBKO_UUVREQ) || (m_CSBKO == CSBKO_UUANSRSP))
169-
{
168+
if ((m_CSBKO == CSBKO_UUVREQ) || (m_CSBKO == CSBKO_UUANSRSP)) {
170169
if (ovcm)
171170
m_data[2U] |= 0x04U;
172171
else

0 commit comments

Comments
 (0)