Colin Stearns / Mbed 2 deprecated dgps

Dependencies:   mbed

Revision:
6:f0248eb6714d
Parent:
5:eef5ea6a9916
--- a/handle/handleCamera.cpp	Thu Apr 03 15:56:05 2014 +0000
+++ b/handle/handleCamera.cpp	Thu Apr 03 16:27:23 2014 +0000
@@ -17,7 +17,7 @@
     int i;
     for(i=0;i<size;){
         // read 32 bytes at a time;
-        uint8_t bytesToRead = min(64, size-i); // change 32 to 64 for a speedup but may not work with all setups!
+        uint8_t bytesToRead = std::min(64, size-i); // change 32 to 64 for a speedup but may not work with all setups!
         uint8_t bytesRead=0;
         uint8_t* buffer = cam.readPicture(bytesToRead,&bytesRead);
         for(int a=0;a<bytesRead;a++){USB::getSerial().putc(buffer[a]);}