From 5477321ce7cdcdf57d2d5b540f71215593b9c14a Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Wed, 12 Nov 2014 15:19:17 +0000 Subject: [PATCH] tsl2561: fix indentation of example Signed-off-by: Brendan Le Foll --- examples/tsl2561.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/tsl2561.cxx b/examples/tsl2561.cxx index 90746aee..14ddb8a4 100755 --- a/examples/tsl2561.cxx +++ b/examples/tsl2561.cxx @@ -30,21 +30,17 @@ int main (int argc, char **argv) { - mraa_result_t error = MRAA_SUCCESS; - upm::TSL2561 *sensor = NULL; - int loopCount = 100; + mraa_result_t error = MRAA_SUCCESS; + upm::TSL2561 *sensor = NULL; + int loopCount = 100; //! [Interesting] - if (argc < 2) { + if (argc < 2) { printf("Provide loop count \n"); } else { loopCount = atoi(argv[1]); } sensor = new upm::TSL2561(); - //sensor = new upm::TSL2561(0, TSL2561_Address, GAIN_16X, INTEGRATION_TIME2_402MS); - //sensor = new upm::TSL2561(0, TSL2561_Address, GAIN_16X, INTEGRATION_TIME1_101MS); - //sensor = new upm::TSL2561(0, TSL2561_Address, GAIN_16X, INTEGRATION_TIME0_13MS); - //sensor = new upm::TSL2561(0, TSL2561_Address, GAIN_0X, INTEGRATION_TIME2_402MS); for(int i=0; i< loopCount; i++){ fprintf(stdout, "Lux = %d\n", sensor->getLux());