summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-10-25 12:03:59 +0200
committerSven Gothel <[email protected]>2023-10-25 12:03:59 +0200
commitf3d6f3829e9d68444e649e37ea566232aa3ac0ef (patch)
treeccc1e9e2815bcd127380a1dd71381e63543546d0 /java
parentff961a58a97ede6873d847c5c368c7160513e107 (diff)
GATT Server Auth: SMPPairingState: Add missing PASSKEY_NOTIFY on byte -> enum conversion, fix byte values
Diffstat (limited to 'java')
-rw-r--r--java/org/direct_bt/SMPPairingState.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/java/org/direct_bt/SMPPairingState.java b/java/org/direct_bt/SMPPairingState.java
index 6f8abcab..52d37729 100644
--- a/java/org/direct_bt/SMPPairingState.java
+++ b/java/org/direct_bt/SMPPairingState.java
@@ -117,9 +117,10 @@ public enum SMPPairingState {
case (byte) 0x04: return FEATURE_EXCHANGE_COMPLETED;
case (byte) 0x05: return PASSKEY_EXPECTED;
case (byte) 0x06: return NUMERIC_COMPARE_EXPECTED;
- case (byte) 0x07: return OOB_EXPECTED;
- case (byte) 0x08: return KEY_DISTRIBUTION;
- case (byte) 0x09: return COMPLETED;
+ case (byte) 0x07: return PASSKEY_NOTIFY;
+ case (byte) 0x08: return OOB_EXPECTED;
+ case (byte) 0x09: return KEY_DISTRIBUTION;
+ case (byte) 0x0a: return COMPLETED;
default: return NONE;
}
}