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 bcb81f5 commit 1f5c5b0Copy full SHA for 1f5c5b0
samples/drivers/video/capture/src/main.c
@@ -205,10 +205,10 @@ int main(void)
205
video_set_ctrl(video_dev, &ctrl);
206
}
207
208
-#ifdef CONFIG_TEST
209
- ctrl.id = VIDEO_CID_TEST_PATTERN;
210
- video_set_ctrl(video_dev, &ctrl);
211
-#endif
+ if (IS_ENABLED(CONFIG_TEST)) {
+ ctrl.id = VIDEO_CID_TEST_PATTERN;
+ video_set_ctrl(video_dev, &ctrl);
+ }
212
213
#if DT_HAS_CHOSEN(zephyr_display)
214
const struct device *const display_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
0 commit comments