From 8a8e0fb2675878c045d9770da0940c7c895b89ec Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 25 Mar 2019 16:32:50 +0100 Subject: MCS: add mcs_is_*() helpers In preparation for Channel Coding Command encoder in follow-up patches let's add necessary helpers. Those are similar to previously used helpers from GprsCodingScheme class but without CamelCase and with less typo chances between Gprs and Egprs cases. Change-Id: I6699cbc8d7ae766fa4d2b3d37e5f9ff1cf158b7e --- src/gprs_coding_scheme.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gprs_coding_scheme.cpp') diff --git a/src/gprs_coding_scheme.cpp b/src/gprs_coding_scheme.cpp index 1a89b772..8e6593b9 100644 --- a/src/gprs_coding_scheme.cpp +++ b/src/gprs_coding_scheme.cpp @@ -228,10 +228,10 @@ void GprsCodingScheme::dec(enum mcs_kind mode) void GprsCodingScheme::inc() { - if (isGprs() && m_scheme == CS4) + if (mcs_is_gprs(m_scheme) && m_scheme == CS4) return; - if (isEgprs() && m_scheme == MCS9) + if (mcs_is_edge(m_scheme) && m_scheme == MCS9) return; if (!isValid()) @@ -242,10 +242,10 @@ void GprsCodingScheme::inc() void GprsCodingScheme::dec() { - if (isGprs() && m_scheme == CS1) + if (mcs_is_gprs(m_scheme) && m_scheme == CS1) return; - if (isEgprs() && m_scheme == MCS1) + if (mcs_is_edge(m_scheme) && m_scheme == MCS1) return; if (!isValid()) -- cgit v1.2.3