Skip to content

Commit

Permalink
p4a: remove CONTROLLER_ERROR_CODES from error code table
Browse files Browse the repository at this point in the history
The values in CONTROLLER_ERROR_CODES overlap with PROTOCOL_ERROR_CODES
so we will need a separate lookup table if these error codes are
actually needed.
  • Loading branch information
dlech committed Oct 17, 2021
1 parent 25f273d commit 48b79a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bleak/backends/p4android/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
}

GATT_SUCCESS = 0x0000
# TODO: we may need different lookups, e.g. one for bleak.exc.CONTROLLER_ERROR_CODES
GATT_STATUS_STRINGS = {
# https://developer.android.com/reference/android/bluetooth/BluetoothGatt
# https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/5738f83aeb59361a0a2eda2460113f6dc9194271/stack/include/gatt_api.h
# https://android.googlesource.com/platform/system/bt/+/master/stack/include/gatt_api.h
# https://www.bluetooth.com/specifications/bluetooth-core-specification/
**bleak.exc.CONTROLLER_ERROR_CODES,
**bleak.exc.PROTOCOL_ERROR_CODES,
0x007F: "Too Short",
0x0080: "No Resources",
Expand Down

0 comments on commit 48b79a4

Please sign in to comment.