mirror of https://github.com/nirenjan/libx52.git
Move test program into src directory
parent
032dda1dd4
commit
77cf6c490f
|
@ -1,6 +1,13 @@
|
|||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
lib_LTLIBRARIES = libx52.la
|
||||
libx52_la_SOURCES = src/x52_common.h src/x52_commands.h src/libx52.h \
|
||||
src/x52_control.c src/x52_core.c \
|
||||
src/x52_date_time.c src/x52_mfd_led.c
|
||||
libx52_la_LDFLAGS = -version-info 1:0:0
|
||||
libx52_la_LDFLAGS = -version-info 1:0:0 -lusb-1.0
|
||||
pkginclude_HEADERS = src/libx52.h
|
||||
|
||||
noinst_PROGRAMS = x52_test
|
||||
x52_test_SOURCES = src/x52_test.c
|
||||
x52_test_LDADD = libx52.la
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
AC_INIT([libx52], [1.0.0], [nirenjan@gmail.com])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
|
||||
AC_PROG_CC
|
||||
AM_PROG_AR
|
||||
|
|
|
@ -12,9 +12,6 @@ typedef void (*test_func)(libx52_device *dev, int step);
|
|||
/* Run test initializations */
|
||||
static void test_cleanup(libx52_device *dev)
|
||||
{
|
||||
libx52_set_brightness(dev, 1, 127);
|
||||
libx52_set_brightness(dev, 0, 127);
|
||||
|
||||
/* Set the default LED states */
|
||||
libx52_set_led_state(dev, LIBX52_LED_FIRE, LIBX52_LED_STATE_ON);
|
||||
libx52_set_led_state(dev, LIBX52_LED_A, LIBX52_LED_STATE_GREEN);
|
||||
|
@ -36,6 +33,10 @@ static void test_cleanup(libx52_device *dev)
|
|||
libx52_set_text(dev, 0, " Saitek X52 Pro", 15);
|
||||
libx52_set_text(dev, 1, " Flight ", 15);
|
||||
libx52_set_text(dev, 2, " Control System", 15);
|
||||
|
||||
/* Maximum brightness */
|
||||
libx52_set_brightness(dev, 1, 127);
|
||||
libx52_set_brightness(dev, 0, 127);
|
||||
}
|
||||
|
||||
static void test_mfd_display(libx52_device *dev, int step)
|
Loading…
Reference in New Issue