Commit e7e9de4e authored by hudson@kremvax.wan's avatar hudson@kremvax.wan
Browse files

Added option to start recording automatically and clear the BMP display

parent dc736bdcb693
......@@ -469,3 +469,42 @@ dump_task( void )
TASK_CREATE( "dump_task", dump_task, 0, 0x1f, 0x1000 );
CONFIG_INT( "debug.timed-start", timed_start, 0 );
static void
movie_start( void )
{
int sec = timed_start;
if( sec == 0 )
return;
const int x = 320;
const int y = 150;
while( --sec > 0 )
{
msleep( 1000 );
bmp_printf(
FONT(
FONT_HUGE,
sec > 4 ? COLOR_WHITE : COLOR_RED,
0
),
x, y,
"T-%d",
sec
);
}
bmp_printf( FONT(FONT_HUGE,COLOR_WHITE,0), x, y, "GO!" );
call( "MovieStart" );
msleep( 1000 );
bmp_printf( FONT(FONT_HUGE,COLOR_WHITE,0), x, y, " " );
}
TASK_CREATE( "movie_start", movie_start, 0, 0x1f, 0x1000 );
......@@ -695,6 +695,9 @@ zebra_task( void )
*/
DebugMsg( DM_MAGIC, 3, "Entering liveview" );
call( "FA_StartLiveView" );
// Clear the bitmap display, just in case
bmp_fill( 0, 0, 0, 720, 480 );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment