Skip to content

Commit

Permalink
Fix #2 (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinCG committed Mar 26, 2018
1 parent 661395e commit 39350b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LightDependentResistor/LightDependentResistor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ void LightDependentResistor::updatePhotocellParameters(float mult_value, float p

float LightDependentResistor::luxToFootCandles(float intensity_in_lux)
{
return intensity_in_footcandles/10.764;
return intensity_in_lux/10.764;
}

float LightDependentResistor::footCandlesToLux(float intensity_in_footcandles)
{
return 10.764*intensity_in_lux;
return 10.764*intensity_in_footcandles;
}

void LightDependentResistor::setPhotocellPositionOnGround(bool on_ground)
Expand Down

0 comments on commit 39350b1

Please sign in to comment.