diff options
author | Andreas Auras <yak54@gmx.net> | 2010-03-08 12:04:21 +0100 |
---|---|---|
committer | Andreas Auras <yak54@gmx.net> | 2010-03-08 12:04:21 +0100 |
commit | 8cdf0107bd19de3d383bb18b4456ff2da18c4c55 (patch) | |
tree | 140ca560680bd2735adf9aa6b22f6efea6d396dd /test_appl | |
parent | 2a11796c3c9cb1cbae2063f514ada7a2458f90dd (diff) | |
download | df10ch-atmolight-controller-8cdf0107bd19de3d383bb18b4456ff2da18c4c55.tar.gz df10ch-atmolight-controller-8cdf0107bd19de3d383bb18b4456ff2da18c4c55.tar.bz2 |
Added documentation for test application
Diffstat (limited to 'test_appl')
-rw-r--r-- | test_appl/df10ch_test.c | 11 |
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; |