Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems
Dependents: mtsas mtsas mtsas mtsas
Revision 70:c0c621f88330, committed 2014-11-11
- Comitter:
- Vanger
- Date:
- Tue Nov 11 19:03:43 2014 +0000
- Parent:
- 69:93dace69ee98
- Child:
- 71:8e8152d955d1
- Child:
- 72:7862171b277d
- Commit message:
- Changed local port issue "if" statement structure into a simplified "if" statement.
Changed in this revision
Cellular/EasyIP.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Cellular/EasyIP.cpp Tue Nov 11 17:54:06 2014 +0000 +++ b/Cellular/EasyIP.cpp Tue Nov 11 19:03:43 2014 +0000 @@ -294,14 +294,9 @@ return false; } - if(type == MTSMC_EV3) { + if(type == MTSMC_EV3 || type == MTSMC_LAT1) { if(!local_port) { - logDebug("Local port set to 1, port 0 not supported for MTSMC_EV3"); - local_port = 1; - } - } else if (type == MTSMC_LAT1) { - if(!local_port) { - logDebug("Local port set to 1, port 0 not supported for MTSMC_LAT1"); + logDebug("Local port set to 1, port 0 not supported for %s", getRadioNames(type).c_str()); local_port = 1; } }