samples: drivers: video: capture: convert #ifdef into if()
Convert #ifdef CONFIG_TEST into if (IS_ENABLED(CONFIG_TEST)) to improve readability. Signed-off-by: Josuah Demangeon <me@josuah.net>
This commit is contained in:
parent
585ee76425
commit
8248854663
1 changed files with 4 additions and 4 deletions
|
@ -207,10 +207,10 @@ int main(void)
|
|||
video_set_ctrl(video_dev, &ctrl);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TEST
|
||||
if (IS_ENABLED(CONFIG_TEST)) {
|
||||
ctrl.id = VIDEO_CID_TEST_PATTERN;
|
||||
video_set_ctrl(video_dev, &ctrl);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if DT_HAS_CHOSEN(zephyr_display)
|
||||
const struct device *const display_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue