diff --git a/tests/pkg_qr-code-generator/Kconfig b/tests/pkg_qr-code-generator/Kconfig index e22856bd2b..b03c3d767f 100644 --- a/tests/pkg_qr-code-generator/Kconfig +++ b/tests/pkg_qr-code-generator/Kconfig @@ -7,4 +7,4 @@ config APPLICATION config BOARD_HAS_DISPLAY bool default y - depends on BOARD_PINETIME || BOARD_ADAFRUIT_CLUE || BOARD_STM32F429I_DISC1 || BOARD_STM32F429I_DISCO || BOARD_ESP32_WROVER_KIT + depends on BOARD_PINETIME || BOARD_ADAFRUIT_CLUE || BOARD_STM32F429I_DISC1 || BOARD_STM32F429I_DISCO || BOARD_STM32F746G_DISCO || BOARD_ESP32_WROVER_KIT diff --git a/tests/pkg_qr-code-generator/Makefile.board.dep b/tests/pkg_qr-code-generator/Makefile.board.dep index debabcf92e..82531e5413 100644 --- a/tests/pkg_qr-code-generator/Makefile.board.dep +++ b/tests/pkg_qr-code-generator/Makefile.board.dep @@ -1,4 +1,4 @@ # Boards with a screen can use disp_dev -ifneq (,$(filter stm32f429i-disc% pinetime adafruit-clue esp32-wrover-kit,$(BOARD))) +ifneq (,$(filter stm32f429i-disc% stm32f746g-disco pinetime adafruit-clue esp32-wrover-kit,$(BOARD))) USEMODULE += disp_dev endif diff --git a/tests/pkg_qr-code-generator/main.c b/tests/pkg_qr-code-generator/main.c index 5c97c32c90..f387dbdbea 100644 --- a/tests/pkg_qr-code-generator/main.c +++ b/tests/pkg_qr-code-generator/main.c @@ -42,7 +42,11 @@ static uint8_t qr0[qrcodegen_BUFFER_LEN_FOR_VERSION(ENCODER_VERSION)]; static uint8_t buffer[qrcodegen_BUFFER_LEN_FOR_VERSION(ENCODER_VERSION)]; #ifdef MODULE_DISP_DEV +#ifdef LCD_SCREEN_WIDTH +#define DISPLAY_BUFFER_MAX_SIZE (LCD_SCREEN_WIDTH) +#else #define DISPLAY_BUFFER_MAX_SIZE (320) +#endif static uint16_t display_buffer[DISPLAY_BUFFER_MAX_SIZE] = { 0 }; #endif