Skip to content

Commit c52cb53

Browse files
committed
Correct default integration time
1 parent 79d20e1 commit c52cb53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_VEML7700_Arduino_Library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ bool VEML7700::begin(TwoWire &wirePort)
6767
_configurationRegister.CONFIG_REG_SD = VEML7700_POWER_ON;
6868
_configurationRegister.CONFIG_REG_INT_EN = VEML7700_INT_DISABLE;
6969
_configurationRegister.CONFIG_REG_PERS = VEML7700_PERSISTENCE_1;
70-
_configurationRegister.CONFIG_REG_IT = VEML7700_INTEGRATION_100ms;
70+
_configurationRegister.CONFIG_REG_IT = (VEML7700_t)integrationTimeConfig(VEML7700_INTEGRATION_100ms);
7171
_configurationRegister.CONFIG_REG_SM = VEML7700_SENSITIVITY_x1;
7272

7373
err = writeI2CRegister(_configurationRegister.all, VEML7700_CONFIGURATION_REGISTER);

0 commit comments

Comments
 (0)