Skip to content

Commit

Permalink
Fix JNI library.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Feb 1, 2018
1 parent 7ee1ab3 commit 3a4b948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ model {
cpp {
source {
srcDirs = ['src/driver/native/cpp', 'libsweep/src']
include '**/*.cc'
include '**/*.cc', '**/*.cpp'
excludes = ['dummy.cc']
}
exportedHeaders {
Expand Down
2 changes: 1 addition & 1 deletion src/driver/native/cpp/jni/SweepJNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<jlong>(rv);
}
Expand Down

0 comments on commit 3a4b948

Please sign in to comment.