Simple detection for LE910-NA1 modules

Fork of MTS-Cellular by MultiTech

Revision:
72:7862171b277d
Parent:
67:7c705fe2acec
--- a/Cellular/UIP.cpp	Tue Nov 11 19:03:43 2014 +0000
+++ b/Cellular/UIP.cpp	Fri Jan 23 16:51:13 2015 -0600
@@ -439,11 +439,11 @@
                     } else {
                         //We want to write all the way up to the next special character
                         int relativeIndex = vSpecial[specialWritten] - bytesWritten;
-                        int size = MIN(available, relativeIndex);
+                        int size = mts_min(available, relativeIndex);
                         bytesWritten += io->write(&data[bytesWritten], size);
                     }
                 } else {
-                    int size = MIN(available, length - bytesWritten);
+                    int size = mts_min(available, length - bytesWritten);
                     bytesWritten += io->write(&data[bytesWritten], size);
                 }
             } else {
@@ -535,4 +535,4 @@
         }
     }
     return false;
-}
\ No newline at end of file
+}