Commit 23488748 authored by Melroy van den Berg's avatar Melroy van den Berg

clean-up

parent b47849e8
Pipeline #1064 passed with stages
in 13 seconds
......@@ -51,11 +51,13 @@ bool DoGasMeasurement(int i2c_fd) {
printf("Error: Could not init the gas sensor!\n");
return false;
}
// Set humidity compensation value
sgp.SetHumidity(absoluteHumidity);
// TODO: first 15 seconds after init, returns fixed values (so should be ignored)
// Also: According to the specs we need to sent regular internals of 1s to ensure proper dynamic baseline compensation algo.
// This time interval needs to be done forever.
printf("INFO: Absolute humidty is set to: %u\n", absoluteHumidity);
sgp.SetHumidity(absoluteHumidity);
int counter = 0;
while(counter < 40) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment