tests/ccs811: satisfy Codacy

This commit is contained in:
Gunar Schorcht 2018-12-18 12:43:24 +01:00 committed by Alexandre Abadie
parent 3181a2faa7
commit ae3ad4a93f
2 changed files with 12 additions and 15 deletions

View File

@ -10,7 +10,6 @@ sensor can be used for periodic polling.
The test application demonstrates the use of the CCS811 using The test application demonstrates the use of the CCS811 using
- data-ready status function ```ccs811_data_ready``` to wait for new data and - data-ready status function ```ccs811_data_ready``` to wait for new data and
- default configuration parameters, that is, the measurement mode - default configuration parameters, that is, the measurement mode
```CCS811_MODE_1S``` with one measurement per second. ```CCS811_MODE_1S``` with one measurement per second.

View File

@ -13,17 +13,15 @@ The test application demonstrates the use of the CCS811 and pseudomodule
```ccs811_full``` using ```ccs811_full``` using
- data-ready interrupt ```CCS811_INT_DATA_READY``` and - data-ready interrupt ```CCS811_INT_DATA_READY``` and
- default configuration parameters, that is, the measurement mode - default configuration parameters, that is, the measurement mode
```CCS811_MODE_1S``` with one measurement per second. ```CCS811_MODE_1S``` with one measurement per second.
The default configuration parameter for the interrupt pin has to be The default configuration parameter for the interrupt pin has to be
overridden according to the hardware configuration by defining overridden according to the hardware configuration by defining
```CCS811_PARAM_INT_PIN``` before ```ccs811_params.h``` is included, e.g., ```CCS811_PARAM_INT_PIN``` before ```ccs811_params.h``` is included, e.g.,
```
#define CCS811_PARAM_INT_PIN (GPIO_PIN(0, 7)) #define CCS811_PARAM_INT_PIN (GPIO_PIN(0, 7))
```
or via the CFLAGS variable in the make command. or via the `CFLAGS` variable in the make command.
```
CFLAGS="-DCCS811_PARAM_INT_PIN=\(GPIO_PIN\(0,7\)\)" make -C tests/driver_ccs811 BOARD=... CFLAGS="-DCCS811_PARAM_INT_PIN=\(GPIO_PIN\(0,7\)\)" make -C tests/driver_ccs811 BOARD=...
```