From dcaca8140f877f3adb085d76eed32b1748ccf7aa Mon Sep 17 00:00:00 2001 From: strawmanbobi Date: Tue, 28 Mar 2017 12:57:06 +0800 Subject: [PATCH] prepared Android decode example --- src/example/decode_example/Android/.gitignore | 0 .../CC26xx/Source/Application/simpleBLEPeripheral.c | 2 +- .../CC26xx/Source/Application/simpleBLEPeripheral.h | 2 +- src/ir_decoder/jni/ir_decode_jni.c | 6 +++--- 4 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 src/example/decode_example/Android/.gitignore diff --git a/src/example/decode_example/Android/.gitignore b/src/example/decode_example/Android/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/src/example/decode_example/CC26xx/Source/Application/simpleBLEPeripheral.c b/src/example/decode_example/CC26xx/Source/Application/simpleBLEPeripheral.c index 8af0580..e89b804 100644 --- a/src/example/decode_example/CC26xx/Source/Application/simpleBLEPeripheral.c +++ b/src/example/decode_example/CC26xx/Source/Application/simpleBLEPeripheral.c @@ -6,7 +6,7 @@ Revision: Revision: 1.0 Description: This file provides algorithms for IR decode (status type) Revision log: -* 2016-10-01: created by strawmanbobi +* 2017-01-10: created by strawmanbobi **************************************************************************************/ diff --git a/src/example/decode_example/CC26xx/Source/Application/simpleBLEPeripheral.h b/src/example/decode_example/CC26xx/Source/Application/simpleBLEPeripheral.h index 7b8c097..c0cf6e3 100644 --- a/src/example/decode_example/CC26xx/Source/Application/simpleBLEPeripheral.h +++ b/src/example/decode_example/CC26xx/Source/Application/simpleBLEPeripheral.h @@ -6,7 +6,7 @@ Revision: Revision: 1.0 Description: This file provides algorithms for IR decode (status type) Revision log: -* 2016-10-01: created by strawmanbobi +* 2017-01-10: created by strawmanbobi **************************************************************************************/ #ifndef SIMPLEBLEPERIPHERAL_H diff --git a/src/ir_decoder/jni/ir_decode_jni.c b/src/ir_decoder/jni/ir_decode_jni.c index b54e34f..6df7828 100644 --- a/src/ir_decoder/jni/ir_decode_jni.c +++ b/src/ir_decoder/jni/ir_decode_jni.c @@ -66,7 +66,7 @@ JNIEXPORT jintArray JNICALL Java_net_irext_remote_service_DecodeService_irACCont jfieldID ac_wind_speed_fid = (*env)->GetFieldID(env, n_ac_status, "acWindSpeed", "I"); jint i_ac_wind_speed = (*env)->GetIntField(env, jni_ac_status, ac_wind_speed_fid); - IR_PRINTF("\nget ac status : %d, %d, %d, %d, %d, %d\n", + ir_printf("\nget ac status : %d, %d, %d, %d, %d, %d\n", i_ac_power, i_ac_mode, i_ac_temp, @@ -85,7 +85,7 @@ JNIEXPORT jintArray JNICALL Java_net_irext_remote_service_DecodeService_irACCont int wave_code_length = ir_ac_lib_control(ac_status, user_data, function_code, change_wind_direction); - IR_PRINTF("\nsize of wave code = %d\n", wave_code_length); + ir_printf("\nsize of wave code = %d\n", wave_code_length); jintArray result = (*env)->NewIntArray(env, wave_code_length); if (result == NULL) @@ -193,7 +193,7 @@ JNIEXPORT jintArray JNICALL Java_net_irext_remote_service_DecodeService_irTVCont int copy_array[USER_DATA_SIZE] = {0}; int wave_code_length = ir_tv_lib_control(key_number, user_data); - IR_PRINTF("\nsize of wave code = %d\n", wave_code_length); + ir_printf("\nsize of wave code = %d\n", wave_code_length); jintArray result = (*env)->NewIntArray(env, wave_code_length); if (result == NULL)