Updated Java CMake and examples to comply with the new interfaces.

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Serban Waltter
2018-06-21 16:49:42 +03:00
committed by Mihai Tudor Panu
parent 9669f226b9
commit c16b33ae31
6 changed files with 41 additions and 45 deletions

View File

@ -35,7 +35,7 @@ public class HCSR04_Example {
while (true) {
System.out.println("Get distance");
double distance = sonar.getDistance(HCSR04_U.swigToEnum(0));
double distance = sonar.getDistance();
System.out.println("Distance: " + distance);
Thread.sleep(5000);