diff --git a/build.gradle b/build.gradle index cdbb7ab..cad03fd 100644 --- a/build.gradle +++ b/build.gradle @@ -117,7 +117,7 @@ model { cpp { source { srcDirs = ['src/driver/native/cpp', 'libsweep/src'] - include '**/*.cc' + include '**/*.cc', '**/*.cpp' excludes = ['dummy.cc'] } exportedHeaders { diff --git a/src/driver/native/cpp/jni/SweepJNI.cpp b/src/driver/native/cpp/jni/SweepJNI.cpp index ca4a2bf..46aefe8 100644 --- a/src/driver/native/cpp/jni/SweepJNI.cpp +++ b/src/driver/native/cpp/jni/SweepJNI.cpp @@ -40,7 +40,7 @@ JNIEXPORT jlong JNICALL Java_com_armabot_SweepJNI_constructSimple (JNIEnv *env, jclass) { sweep_error_s error = nullptr; - sweep_device_s rv = sweep_device_construct_simple(&error); + sweep_device_s rv = sweep_device_construct_simple("/dev/ttyUSB0", &error); if (!CheckStatus(env, error)) return 0; return reinterpret_cast(rv); }