Fork of Kojto's library with bugfixes: * added PTC2/TSI0_CH15 pinmapping for KL25 and KL46 MCUs * Fixed readDistance() function

Fork of tsi_sensor by Martin Kojtal

Fork of Kojto's library with bugfixes

  • added PTC2/TSI0_CH15 pinmapping for KL25 and KL46 MCUs
  • Fixed readDistance() function
Revision:
10:976904559b5c
Parent:
4:f64097679f27
--- a/tsi_sensor.cpp	Fri Jun 12 19:26:51 2015 +0000
+++ b/tsi_sensor.cpp	Sun Jun 14 13:28:19 2015 +0000
@@ -105,7 +105,7 @@
             setSliderPercPosition(0, perc_pos0);
             setSliderPercPosition(1, perc_pos1);
             uint32_t dist_pos0 = (perc_pos0 * _range) / 100;
-            uint32_t dist_pos1 = (perc_pos0 * _range) / 100;
+            uint32_t dist_pos1 = (perc_pos1 * _range) / 100;
             setSliderDisPosition(0, dist_pos0);
             setSliderDisPosition(1, dist_pos1);