Debug modifications for monitoring internals parameters
Fork of tsi_sensor by
Diff: tsi_sensor.cpp
- Revision:
- 5:37ae0d169e13
- Parent:
- 4:f64097679f27
diff -r f64097679f27 -r 37ae0d169e13 tsi_sensor.cpp --- a/tsi_sensor.cpp Mon Aug 04 07:43:15 2014 +0000 +++ b/tsi_sensor.cpp Tue Nov 11 22:18:10 2014 +0000 @@ -96,8 +96,11 @@ void TSIAnalogSlider::sliderRead(void ) { if (_scan_in_progress) { _scan_in_progress = 0; - uint32_t delta0 = _elec0.getDelta(); - uint32_t delta1 = _elec1.getDelta(); + //uint32_t delta0 = _elec0.getDelta(); + //uint32_t delta1 = _elec1.getDelta(); + delta0 = _elec0.getDelta(); + delta1 = _elec1.getDelta(); + //pc.printf(" ~%i~%i~",delta0,delta1); if ((delta0 > _elec0.getThreshold()) || (delta1 > _elec1.getThreshold())) { uint32_t perc_pos0 = (delta0 * 100) / (delta0 + delta1);