Commit 04ca77bd authored by Patrick's avatar Patrick

extend the sensor on time to stabilise the readings

parent bda4bc2d
......@@ -2,7 +2,7 @@
#define DEBUG_MODE 1
// choose processor sleep mode (1 = on)
#define SLEEP_MODE_ON 0
#define SLEEP_MODE_ON 1
#include <avr/interrupt.h>
#include <avr/power.h>
......@@ -199,9 +199,8 @@ t_SensorData get_reading(sensor_e target) {
if (target == ANA) {
delay(160); // power up start ranging
delay(148); // alow analog reading to settle
} else {
delay(100);
}
delay(100);
t_SensorData sensorData = RP.get(target);
RP.sensorsOff();
return sensorData;
......
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