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

Added lens focus test. It works!

parent 12236332bfa0
......@@ -81,9 +81,45 @@ ptp_handler_9999(
&msg
);
// Try to disable the USB lock
gui_unlock();
return 0;
}
static int
ptp_handler_9998(
void * priv,
struct ptp_context * context,
uint32_t opcode,
uint32_t session,
uint32_t transaction,
uint32_t param1,
uint32_t param2,
uint32_t param3,
uint32_t param4,
uint32_t param5
)
{
struct ptp_msg msg = {
.id = PTP_RC_OK,
.session = session,
.transaction = transaction,
};
lens_focus( 0x7, -1000 );
context->send(
context->handle,
&msg
);
return 0;
}
static void
ptp_state_display(
void * priv,
......@@ -132,6 +168,12 @@ ptp_init( void )
0
);
ptp_register_handler(
0x9998,
ptp_handler_9998,
0
);
menu_add( "PTP", ptp_menus, COUNT(ptp_menus) );
}
......
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