Loading android/app/jni/com_android_bluetooth_gatt.cpp +5 −0 Original line number Original line Diff line number Diff line Loading @@ -1133,6 +1133,11 @@ static void gattClientWriteCharacteristicNative(JNIEnv* env, jobject object, { { if (!sGattIf) return; if (!sGattIf) return; if (value == NULL) { warn("gattClientWriteCharacteristicNative() ignoring NULL array"); return; } btgatt_srvc_id_t srvc_id; btgatt_srvc_id_t srvc_id; srvc_id.id.inst_id = (uint8_t) service_id_inst_id; srvc_id.id.inst_id = (uint8_t) service_id_inst_id; srvc_id.is_primary = (service_type == BTGATT_SERVICE_TYPE_PRIMARY ? 1 : 0); srvc_id.is_primary = (service_type == BTGATT_SERVICE_TYPE_PRIMARY ? 1 : 0); Loading Loading
android/app/jni/com_android_bluetooth_gatt.cpp +5 −0 Original line number Original line Diff line number Diff line Loading @@ -1133,6 +1133,11 @@ static void gattClientWriteCharacteristicNative(JNIEnv* env, jobject object, { { if (!sGattIf) return; if (!sGattIf) return; if (value == NULL) { warn("gattClientWriteCharacteristicNative() ignoring NULL array"); return; } btgatt_srvc_id_t srvc_id; btgatt_srvc_id_t srvc_id; srvc_id.id.inst_id = (uint8_t) service_id_inst_id; srvc_id.id.inst_id = (uint8_t) service_id_inst_id; srvc_id.is_primary = (service_type == BTGATT_SERVICE_TYPE_PRIMARY ? 1 : 0); srvc_id.is_primary = (service_type == BTGATT_SERVICE_TYPE_PRIMARY ? 1 : 0); Loading