Skip to content

Commit ac52105

Browse files
committed
Remove not working function
1 parent 5390d16 commit ac52105

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

jni/hw/dji_display.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
#define GOGGLES_V1_VOFFSET 575
66
#define GOGGLES_V2_VOFFSET 215
77

8-
static duss_result_t pop_func(duss_disp_instance_handle_t *disp_handle,duss_disp_plane_id_t plane_id, duss_frame_buffer_t *frame_buffer,void *user_ctx) {
9-
dji_display_state_t *display_state = (dji_display_state_t *)user_ctx;
10-
display_state->frame_drawn = 0;
11-
printf("fbdebug pop_func\n");
12-
return 0;
13-
}
14-
158
dji_display_state_t *dji_display_state_alloc(uint8_t is_v2_goggles) {
169
dji_display_state_t *display_state = calloc(1, sizeof(dji_display_state_t));
1710
display_state->disp_instance_handle = (duss_disp_instance_handle_t *)calloc(1, sizeof(duss_disp_instance_handle_t));
@@ -98,11 +91,6 @@ void dji_display_open_framebuffer(dji_display_state_t *display_state, duss_disp_
9891
printf("failed to acquire plane");
9992
exit(0);
10093
}
101-
res = duss_hal_display_register_frame_cycle_callback(display_state->disp_instance_handle, plane_id, &pop_func, display_state);
102-
if (res != 0) {
103-
printf("failed to register callback");
104-
exit(0);
105-
}
10694
res = duss_hal_display_port_enable(display_state->disp_instance_handle, 3, 1);
10795
if (res != 0) {
10896
printf("failed to enable display port");
@@ -215,11 +203,6 @@ void dji_display_open_framebuffer_injected(dji_display_state_t *display_state, d
215203
DEBUG_PRINT("failed to acquire plane");
216204
exit(0);
217205
}
218-
res = duss_hal_display_register_frame_cycle_callback(display_state->disp_instance_handle, plane_id, &pop_func, 0);
219-
if (res != 0) {
220-
DEBUG_PRINT("failed to register callback");
221-
exit(0);
222-
}
223206

224207
res = duss_hal_display_plane_blending_set(display_state->disp_instance_handle, plane_id, display_state->pb_0);
225208

0 commit comments

Comments
 (0)