From fd4ba21a0a95ceac15c4f40855e55f069feab97d Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Mon, 1 May 2023 22:20:44 +0200 Subject: [PATCH] Only print firmware version in debug build Signed-off-by: TheJackiMonster --- interface_lib/src/device4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface_lib/src/device4.c b/interface_lib/src/device4.c index 518e68e..06668f5 100644 --- a/interface_lib/src/device4.c +++ b/interface_lib/src/device4.c @@ -218,9 +218,11 @@ device4_type* device4_open(device4_event_callback callback) { return device; } +#ifndef NDEBUG printf("MCU: %s\n", device->mcu_app_fw_version); printf("DP: %s\n", device->dp_fw_version); printf("DSP: %s\n", device->dsp_fw_version); +#endif if (!send_payload_action(device, DEVICE4_MSG_R_BRIGHTNESS, 0, NULL)) { perror("Requesting initial brightness failed!\n");