Skip to content

Commit 505d5d5

Browse files
committed
vfx: fix build errors when vfx is disabled
1 parent 508ed1e commit 505d5d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main/inc/user/vfx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ extern float vfx_fft_output[FFT_N];
7575
// ani1.gif
7676
extern const char ani1_160x80_gif_ptr[] asm("_binary_ani1_160x80_gif_start");
7777
extern const char ani1_160x80_gif_end[] asm("_binary_ani1_160x80_gif_end");
78-
#elif defined(CONFIG_VFX_OUTPUT_ST7789)
78+
#else
7979
// ani0.gif
8080
extern const char ani0_240x135_gif_ptr[] asm("_binary_ani0_240x135_gif_start");
8181
extern const char ani0_240x135_gif_end[] asm("_binary_ani0_240x135_gif_end");

main/src/user/vfx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static const char *img_file_ptr[][2] = {
4343
#ifdef CONFIG_VFX_OUTPUT_ST7735
4444
{ani0_160x80_gif_ptr, ani0_160x80_gif_end}, // "Nyan Cat"
4545
{ani1_160x80_gif_ptr, ani1_160x80_gif_end}, // "bilibili"
46-
#elif defined(CONFIG_VFX_OUTPUT_ST7789)
46+
#else
4747
{ani0_240x135_gif_ptr, ani0_240x135_gif_end}, // "Nyan Cat"
4848
{ani1_240x135_gif_ptr, ani1_240x135_gif_end}, // "bilibili"
4949
#endif

0 commit comments

Comments
 (0)