Browse Source

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

pr/rotary
Alexandre Abadie 6 years ago
parent
commit
f97901193d
  1. 4
      drivers/include/veml6070.h
  2. 2
      drivers/veml6070/veml6070_saul.c

4
drivers/include/veml6070.h

@ -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);

2
drivers/veml6070/veml6070_saul.c

@ -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
};

Loading…
Cancel
Save