Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
seancaulfield committed Dec 2, 2019
1 parent bbb8f08 commit ed6f130
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions VEML6075.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ VEML6075::VEML6075() {
this->config = 0;
this->config |= VEML6075_CONF_SD_OFF;

// App note only provided math for this one...
// App note only provided math for this one, so be advised that changing it
// will give you "undefined" results from all the calculations.
// Might be able to do a linear compensation for the integration time length?
this->config |= VEML6075_CONF_IT_100MS;
}

Expand Down Expand Up @@ -72,9 +74,6 @@ uint16_t VEML6075::getDevID() {
}

float VEML6075::getUVA() {
//float comp_vis = this->raw_vis - this->raw_dark;
//float comp_ir = this->raw_ir - this->raw_dark;
//float comp_uva = this->raw_uva - this->raw_dark;
float comp_vis;
float comp_ir;
float comp_uva;
Expand All @@ -96,9 +95,6 @@ float VEML6075::getUVA() {
}

float VEML6075::getUVB() {
//float comp_vis = this->raw_vis - this->raw_dark;
//float comp_ir = this->raw_ir - this->raw_dark;
//float comp_uvb = this->raw_uvb - this->raw_dark;
float comp_vis;
float comp_ir;
float comp_uvb;
Expand Down

0 comments on commit ed6f130

Please sign in to comment.