Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MTS-Cellular by
Diff: Cellular/UIP.cpp
- 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
+}
