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: MARY_CAMERA.cpp
- Revision:
- 14:64ea2901540c
- Parent:
- 13:210f4bbd0cd6
- Child:
- 15:50562b6b23b8
--- a/MARY_CAMERA.cpp Tue Mar 11 03:25:00 2014 +0000
+++ b/MARY_CAMERA.cpp Tue Mar 11 03:49:45 2014 +0000
@@ -288,7 +288,7 @@
#if 1
for ( int i = 0; i < PARAM_NUM; i++ ) {
- if ( 0 != (_error_state = _i2c.write( CAM_I2C_ADDR, camera_register_setting[ i ], 2 )) )
+ if ( 0 != (_error_state = _i2c.write( CAM_I2C_ADDR, camera_register_setting2[ i ], 2 )) )
break;
wait_ms( 20 ); // camera register writing requires this interval
@@ -300,8 +300,6 @@
wait_ms( 20 ); // camera register writing requires this interval
}
-
-
#endif
@@ -324,6 +322,7 @@
+#if 0
for ( int i = 0; i < sizeof( owreg ); i++ ) {
char s[ 2 ];
s[ 0 ] = owreg[ i ];
@@ -334,6 +333,7 @@
wait_ms( 20 ); // camera register writing requires this interval
}
+#endif
return _error_state; // return non-zero if I2C access failed
}