sparkfun / SparkFun_VEML6075_Arduino_Library

Arduino library for the VEML6075 UVA/UVB/UV index sensor
Other
8 stars 9 forks source link

Example 4: UVIA calc is performed twice #1

Closed mhord closed 6 years ago

mhord commented 6 years ago

Lines 75 and 77 both calculate uviaCalc. Is the second one supposed to be a '+=' operation or can the first operation be omitted?

jimblom commented 6 years ago

Good catch. This is a development artifact -- was beginning with calculating UVIA without the alpha/beta/delta/gamma "golden" constants. (They're defaulted to 1.0, so the calculation should end up the same.) Removed the second calculation in commit a091986.