Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc29cf9e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix Periodic Adv method in jni"

parents 5d52214c cdf3539e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1774,10 +1774,10 @@ static PeriodicAdvertisingParameters parsePeriodicParams(JNIEnv* env,
  jclass clazz = env->GetObjectClass(i);
  jmethodID methodId;

  methodId = env->GetMethodID(clazz, "getIncludeTxPower", "()B");
  methodId = env->GetMethodID(clazz, "getIncludeTxPower", "()Z");
  jboolean includeTxPower = env->CallBooleanMethod(i, methodId);
  methodId = env->GetMethodID(clazz, "getInterval", "()I");
  jboolean interval = env->CallBooleanMethod(i, methodId);
  uint16_t interval = env->CallIntMethod(i, methodId);

  p.enable = true;
  p.min_interval = interval;