-

Dependencies:   CommandHandler HygroClip2 InterruptBasedEncoder SPI_TFT_ILI9341 mbed-src-no-hal

Revision:
2:81fc8f80fdb4
Parent:
0:9ed7238d49e2
Child:
3:3ef8c2d7b1bf
--- a/LineGraph.h	Tue Feb 16 12:04:21 2016 +0000
+++ b/LineGraph.h	Wed Feb 17 07:30:14 2016 +0000
@@ -71,7 +71,7 @@
         if (ypos > max_)
             ypos = max_;
         
-        float scaled = buttomOfGraph - (height_ * (ypos / valueRange));    
+        float scaled = buttomOfGraph - (height_ * ((ypos-min_) / valueRange));    
         
         return scaled;
     }