From 1e06ad01551f21d3d61cdc3d69a27dcd6f689a2d Mon Sep 17 00:00:00 2001 From: Laurent Meunier Date: Thu, 20 Jun 2019 10:12:31 +0200 Subject: [PATCH] Astyle fixes --- .../cellular/COMPONENT_STMOD_CELLULAR/STModCellular.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/cellular/COMPONENT_STMOD_CELLULAR/STModCellular.cpp b/components/cellular/COMPONENT_STMOD_CELLULAR/STModCellular.cpp index 7ac82bcb20..e50aaf4724 100644 --- a/components/cellular/COMPONENT_STMOD_CELLULAR/STModCellular.cpp +++ b/components/cellular/COMPONENT_STMOD_CELLULAR/STModCellular.cpp @@ -52,7 +52,8 @@ STModCellular::~STModCellular() { } -nsapi_error_t STModCellular::soft_power_on() { +nsapi_error_t STModCellular::soft_power_on() +{ tr_debug("STMOD cellular modem power ON\r\n"); #if (MBED_CONF_STMOD_CELLULAR_TYPE == STMOD_UG96) @@ -106,7 +107,7 @@ nsapi_error_t STModCellular::soft_power_on() { _at->restore_at_timeout(); _at->unlock(); - tr_debug("Modem %sready to receive AT commands", rdy?"":"NOT "); + tr_debug("Modem %sready to receive AT commands", rdy ? "" : "NOT "); #if DEVICE_SERIAL_FC if ((MBED_CONF_STMOD_CELLULAR_CTS != NC) && (MBED_CONF_STMOD_CELLULAR_RTS != NC)) { @@ -145,7 +146,8 @@ nsapi_error_t STModCellular::soft_power_on() { return err; } -nsapi_error_t STModCellular::soft_power_off() { +nsapi_error_t STModCellular::soft_power_off() +{ _at->cmd_start("AT+QPOWD"); _at->cmd_stop(); wait_ms(1000);