# HG changeset patch # User Mychaela Falconia # Date 1547333626 0 # Node ID 855b3c5bb4b5ef5cfd2c0e30a297fb8cdf3768b1 # Parent 29c0be5a1962404559bbf519e358fd65369dbfc6 .../cst/cst_exts.c: tab indentation fixes diff -r 29c0be5a1962 -r 855b3c5bb4b5 src/cs/services/cst/cst_exts.c --- a/src/cs/services/cst/cst_exts.c Sat Jan 12 19:46:58 2019 +0000 +++ b/src/cs/services/cst/cst_exts.c Sat Jan 12 22:53:46 2019 +0000 @@ -615,34 +615,34 @@ switch (*cmd) { case 'e': - case 'E': + case 'E': /* 's''e' already detected => assume the command is at%ser. */ - { - cmd += 3; /* Discard the following characters */ - *cmdLen -= 9; - if (SER_WriteConfig (cmd, (BOOL) (*(cmd + 3) - '0'))) - return( AT_CMPL ); - else - return( AT_FAIL ); - } + { + cmd += 3; /* Discard the following characters */ + *cmdLen -= 9; + if (SER_WriteConfig (cmd, (BOOL) (*(cmd + 3) - '0'))) + return( AT_CMPL ); + else + return( AT_FAIL ); + } case 'w': - case 'W': + case 'W': /* 's''w' already detected => assume the command is at%switch. */ - { - *cmdLen -= 7; - if (SER_ImmediateSwitch()) - return( AT_CMPL ); - else - return( AT_FAIL ); - } + { + *cmdLen -= 7; + if (SER_ImmediateSwitch()) + return( AT_CMPL ); + else + return( AT_FAIL ); + } case 'l': - case 'L': + case 'L': /* 's''l' already detected => assume the command is at%sleep. */ - { - cmd += 5; /* Discard the following characters */ - *cmdLen -= 8; + { + cmd += 5; /* Discard the following characters */ + *cmdLen -= 8; /* * Checks if the parameter is valid: * 0 -> NO_SLEEP @@ -652,20 +652,20 @@ * 4 -> ALL_SLEEP */ - if (((*cmd - '0') >= 0) && ((*cmd - '0') <= 4)) + if (((*cmd - '0') >= 0) && ((*cmd - '0') <= 4)) { power_down_config ((UBYTE) (*cmd - '0'), UWIRE_CLK_CUT); - return( AT_CMPL ); + return( AT_CMPL ); } - else + else return( AT_FAIL ); - } + } default: *cmdLen -= 2; return ( AT_FAIL ); - } + } } case 'H': @@ -739,7 +739,7 @@ out[0] = 22; memcpy (&out[1], "Performing Audio Tests", 22); out [23] = (CHAR) 0xff; - } + } else { if (!strncmp(cmd, "R", 1) || !strncmp(cmd, "r", 1)) @@ -751,7 +751,7 @@ } else return( AT_FAIL ); - } + } return( AT_CMPL ); #endif default: