We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585ee76 commit 8248854Copy full SHA for 8248854
samples/drivers/video/capture/src/main.c
@@ -207,10 +207,10 @@ int main(void)
207
video_set_ctrl(video_dev, &ctrl);
208
}
209
210
-#ifdef CONFIG_TEST
211
- ctrl.id = VIDEO_CID_TEST_PATTERN;
212
- video_set_ctrl(video_dev, &ctrl);
213
-#endif
+ if (IS_ENABLED(CONFIG_TEST)) {
+ ctrl.id = VIDEO_CID_TEST_PATTERN;
+ video_set_ctrl(video_dev, &ctrl);
+ }
214
215
#if DT_HAS_CHOSEN(zephyr_display)
216
const struct device *const display_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
0 commit comments