1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/veml6070: cleanup + use saul UV index sensor type

This commit is contained in:
Alexandre Abadie 2017-03-15 10:10:45 +01:00
parent 9c2fc3ebc6
commit f97901193d
2 changed files with 3 additions and 3 deletions

View File

@ -73,11 +73,11 @@ typedef struct {
int veml6070_init(veml6070_t *dev, const veml6070_params_t * params);
/**
* @brief Read UV indice from the given VEML6070 device
* @brief Read UV index from the given VEML6070 device
*
* @param[in] dev Device descriptor of VEML6070 device to read from
*
* @return UV indice
* @return UV index
*/
uint16_t veml6070_read_uv(veml6070_t *dev);

View File

@ -37,5 +37,5 @@ static int read_uv(void *dev, phydat_t *res)
const saul_driver_t veml6070_uv_saul_driver = {
.read = read_uv,
.write = saul_notsup,
.type = SAUL_SENSE_ANY
.type = SAUL_SENSE_UV
};