Mireya Rodriguez
/
kl46z_btn_slider_toSerial
Mrodr-SSD645-HW-1
Fork of kl46z_btn_slider_toSerial by
Diff: main.cpp
- Revision:
- 9:3761e140b7a6
- Parent:
- 8:258608fb0ffb
--- a/main.cpp Mon Jan 23 05:51:06 2017 +0000 +++ b/main.cpp Mon Feb 06 05:00:32 2017 +0000 @@ -69,10 +69,10 @@ // Only do stuff with it if it's a new value or if it's not zero if(newSliderValue > 0.0 && newSliderValue != sliderValue) { sliderValue = newSliderValue; - sprintf (lcdData,"%4.3f", sliderValue); // Just to make things user readable + sprintf (lcdData,"%4.3f", floor(sliderValue)); // Just to make things user readable LCDMessNoDwell(lcdData); - pc.printf("slider: %4.3f\r\n", sliderValue); + pc.printf("slider: %4.3f\r\n", floor(sliderValue)); } dataTimer.reset(); }