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.
Dependents: Gaurd_Server2 Gaurd_Server
Fork of JPEGCamera by
Revision 2:f41e57318b6b, committed 2014-12-27
- Comitter:
- SRINATHMADHU
- Date:
- Sat Dec 27 23:48:39 2014 +0000
- Parent:
- 1:27417b6a951d
- Commit message:
- added new fxn and edited reset()
Changed in this revision
| JPEGCamera.cpp | Show annotated file Show diff for this revision Revisions of this file |
| JPEGCamera.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/JPEGCamera.cpp Thu Nov 17 13:59:40 2011 +0000
+++ b/JPEGCamera.cpp Sat Dec 27 23:48:39 2014 +0000
@@ -82,7 +82,10 @@
char buf[4] = {0x56, 0x00, 0x26, 0x00};
int ret = sendReceive(buf, sizeof buf, 4);
if (ret == 4 && buf[0] == 0x76) {
- wait(4.0);
+ //wait(4.0);
+ timer.start();
+ timer.reset();
+ while(timer.read()<=4);
state = READY;
} else {
state = ERROR;
--- a/JPEGCamera.h Thu Nov 17 13:59:40 2011 +0000
+++ b/JPEGCamera.h Sat Dec 27 23:48:39 2014 +0000
@@ -29,6 +29,7 @@
* @param rx rx pin
*/
JPEGCamera(PinName tx, PinName rx);
+
/**
* Set picture size
