mirror of
https://github.com/eclipse/upm.git
synced 2025-07-04 19:01:21 +03:00
java: removed loadLibrary preamble from examples
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
1667569560
commit
9bf184129e
@ -32,15 +32,6 @@ public class NRF24L01_transmitterSample {
|
||||
static private byte[] tx_buffer = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A,
|
||||
0x00};
|
||||
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_nrf24l01");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("error in loading native library");
|
||||
System.exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
// ! [Interesting]
|
||||
upm_nrf24l01.NRF24L01 comm = new upm_nrf24l01.NRF24L01((short) 7, (short) 8);
|
||||
|
Reference in New Issue
Block a user