Merge branch 'master' of github.com:seidenstrasse/sss7modem

This commit is contained in:
Jan Felix Wiebe 2016-12-20 20:19:23 +01:00
commit 9193f1244e
1 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,6 @@ public class SSS7 {
public final int payloadLength = 16; public final int payloadLength = 16;
private NativeSSS7 lib; private NativeSSS7 lib;
private String serial;
protected SSS7() { protected SSS7() {
this.lib = (NativeSSS7) Native.loadLibrary("libsss7.so", NativeSSS7.class); this.lib = (NativeSSS7) Native.loadLibrary("libsss7.so", NativeSSS7.class);
@ -35,7 +34,7 @@ public class SSS7 {
// All methods should be synchronized as libsss7 will a single mutex instance // All methods should be synchronized as libsss7 will a single mutex instance
// for all of them // for all of them
public synchronized boolean start(String serial) { public synchronized boolean start(String serial) {
return this.lib.libsss7_start(this.serial) == 0; return this.lib.libsss7_start(serial) == 0;
} }
public synchronized boolean canSend() { public synchronized boolean canSend() {