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