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

Files at this revision

API Documentation at this revision

Comitter:
josephc3
Date:
Sun Jun 14 13:28:19 2015 +0000
Parent:
9:ef4781f21ea3
Commit message:
Made Change To tsi_sensor.cpp Line 108; Fix for get distance command - ; prevously ; uint32_t dist_pos0 = (perc_pos0 * _range) / 100;; uint32_t dist_pos1 = (perc_pos0 * _range) / 100;; prevented calculation of distance, changed to:

Changed in this revision

tsi_sensor.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);