Skip to content

Commit

Permalink
removing debug printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
sovcik committed May 9, 2016
1 parent 592d5b3 commit 68d2d4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions JPigpio/src/jpigpio/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public static void addShutdown(JPigpio pigpio) {

public static int mapToInt(int value, int sourceLow, int sourceHigh, int targetLow, int targetHigh) {
double pos = (value-sourceLow)/(double)(sourceHigh - sourceLow);
System.out.println("Pos: " + pos);
System.out.println("tHigh - tLow = " + (targetHigh - targetLow));
System.out.println("r = " + (targetLow + ((targetHigh - targetLow) * pos)));
//System.out.println("Pos: " + pos);
//System.out.println("tHigh - tLow = " + (targetHigh - targetLow));
//System.out.println("r = " + (targetLow + ((targetHigh - targetLow) * pos)));
return (int)(targetLow + ((targetHigh - targetLow) * pos));
}

Expand Down

0 comments on commit 68d2d4e

Please sign in to comment.