Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: kl25z-tinyshell-demo tsi_slider_light_senso_LED frdm_tsi_slider_led_blend demo_slider ... more
Revision 10:976904559b5c, committed 2015-06-14
- 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 |
diff -r ef4781f21ea3 -r 976904559b5c tsi_sensor.cpp
--- 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);