Skip to content

Commit

Permalink
Some required changes
Browse files Browse the repository at this point in the history
- Left MIPI struct fields with gibberish that prevented the init
- Short-circuiting SigmaStar IQ config sleep condition
  • Loading branch information
wberube committed May 31, 2024
1 parent 7026f33 commit 31e6b79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/hal/hisi/v4_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ int v4_region_setbitmap(int handle, hal_bitmap *bitmap)
int v4_sensor_config(void) {
int fd;
v4_snr_dev config;
memset(&config, 0, sizeof(config));
config.device = 0;
config.input = v4_config.input_mode;
config.rect.width = v4_config.isp.capt.width;
Expand Down
2 changes: 1 addition & 1 deletion src/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ int start_sdk() {
pthread_attr_destroy(&thread_attr);
}

if (!access(app_config.sensor_config, 0) ^ sleep(1))
if (!access(app_config.sensor_config, 0) && sleep(1))
switch (plat) {
case HAL_PLATFORM_I6:
case HAL_PLATFORM_I6B0:
Expand Down

0 comments on commit 31e6b79

Please sign in to comment.