summaryrefslogtreecommitdiff
path: root/test_appl/df10ch_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test_appl/df10ch_test.c')
-rw-r--r--test_appl/df10ch_test.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/test_appl/df10ch_test.c b/test_appl/df10ch_test.c
index adfe351..2d69a5b 100644
--- a/test_appl/df10ch_test.c
+++ b/test_appl/df10ch_test.c
@@ -438,10 +438,13 @@ static uint16_t bright[DF10CH_MAX_CHANNELS];
int main(int argc, char **argv) {
int n, i, b;
- if (argc > 1)
- n = atoi(argv[1]);
- else
- n = 1;
+ printf("DF10CH test application V1\n");
+ if (argc != 2) {
+ printf("usage: %s number-of-test-loops\n", argv[0]);
+ return 1;
+ }
+
+ n = atoi(argv[1]);
if (!df10ch_driver_open(&driver)) {
int pwm_res = driver.ctrls->pwm_res - DF10CH_MAX_CHANNELS;