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.
Diff: handle/handleCamera.cpp
- 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]);}