From 6cab1e29fc2031a76c87e49c3bcdd7c5db8f40dc Mon Sep 17 00:00:00 2001 From: "mykola.salomatin" Date: Thu, 15 Apr 2021 20:47:36 +0300 Subject: [MTX-3998] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2 - Quectel - GP-1111 Refactoring common functions, telit and quectel functions related to CEMODE switching --- src/MTS_IO_QuectelRadio.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/MTS_IO_QuectelRadio.cpp') diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp index 4f20627..7d96627 100644 --- a/src/MTS_IO_QuectelRadio.cpp +++ b/src/MTS_IO_QuectelRadio.cpp @@ -1223,6 +1223,8 @@ ICellularRadio::CODE QuectelRadio::abortFileUpload() { } ICellularRadio::CODE QuectelRadio::setUeModeOfOperation(UE_MODES_OF_OPERATION mode) { + printTrace("%s| Set UE Mode Of Operation", getName().c_str()); + std::string sDomain, sPreference; switch (mode) { @@ -1251,7 +1253,7 @@ ICellularRadio::CODE QuectelRadio::setUeModeOfOperation(UE_MODES_OF_OPERATION mo sPreference = "01"; break; default: - printTrace("Set UE Mode Of Operation: invalid argument"); + printError("%s| Set UE Mode Of Operation: invalid argument", getName().c_str()); return INVALID_ARGS; } @@ -1261,7 +1263,7 @@ ICellularRadio::CODE QuectelRadio::setUeModeOfOperation(UE_MODES_OF_OPERATION mo rc = sendBasicCommand(sCommand, dTimeout); if (rc != SUCCESS) { - printError("Voice/data preference configuration failed with code [%d]", rc); + printError("%s| Voice/data preference configuration failed with code [%d]", getName().c_str(), rc); return rc; } @@ -1269,7 +1271,7 @@ ICellularRadio::CODE QuectelRadio::setUeModeOfOperation(UE_MODES_OF_OPERATION mo rc = sendBasicCommand(sCommand, dTimeout); if (rc != SUCCESS) { - printError("Service domain configuration failed with code [%d]", rc); + printError("%s| Service domain configuration failed with code [%d]", getName().c_str(), rc); return rc; } -- cgit v1.2.3