Skip to content

Commit 2f6e842

Browse files
committed
Clean up
1 parent d13d29e commit 2f6e842

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

examples/lvglterm/lvglterm.c

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@
4040
#include <port/lv_port.h>
4141
#include "nshlib/nshlib.h"
4242

43+
/* NSH Redirection requires Pipes */
44+
45+
#ifndef CONFIG_DEV_PIPE_SIZE
46+
# error "FIFO and Named Pipe Drivers" should be enabled in menuconfig
47+
#endif
48+
49+
/* NSH Output requires a Monospaced Font */
50+
51+
#ifndef LV_FONT_UNSCII_16
52+
# error LVGL Font UNSCII 16 should be enabled in menuconfig
53+
#endif
54+
4355
/****************************************************************************
4456
* Pre-processor Definitions
4557
****************************************************************************/
@@ -70,15 +82,6 @@
7082
#define READ_PIPE 0
7183
#define WRITE_PIPE 1
7284

73-
#ifndef CONFIG_DEV_PIPE_SIZE
74-
# error "Device Drivers > FIFO and named pipe drivers" should be enabled in menuconfig
75-
#endif
76-
77-
// TODO: Configure font
78-
#ifndef CONFIG_LV_FONT_UNSCII_16
79-
# error "LVGL configuration > Font usage > Enable built-in fonts > UNSCII 16" should be enabled in menuconfig
80-
#endif
81-
8285
/****************************************************************************
8386
* Private Function Prototypes
8487
****************************************************************************/

0 commit comments

Comments
 (0)