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 dgps by
Diff: handle/handleCamera.h
- Revision:
- 20:81d5655fecc2
- Parent:
- 15:e3e03a9df89e
diff -r 8c1f2a2204fb -r 81d5655fecc2 handle/handleCamera.h --- a/handle/handleCamera.h Sun Apr 20 22:01:05 2014 +0000 +++ b/handle/handleCamera.h Tue Apr 22 04:26:31 2014 +0000 @@ -26,6 +26,14 @@ ImageHandle():initialized(false),outputDevice(USB::getSerial()){} /// \brief Run an instance of this void run(); + + static ImageHandle* hand; + static ImageHandle& getImageHand(){ + if(hand == NULL){ + hand = new ImageHandle(); + } + return *hand; + } }; #endif \ No newline at end of file