-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit 913498e
aioble-l2cap: Raise correct error if l2cap disconnects during send.
If BLE disconnects in the middle of a send process, this change makes the
code raise `L2CAPDisconnectedError` rather than `TypeError` due to `_cid`
being `None`.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>1 parent 6e24cff commit 913498e
File tree
3 files changed
+3
-3
lines changed- micropython/bluetooth
- aioble-l2cap
- aioble
- aioble
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | - | ||
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
143 | + | ||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | - | ||
6 | + | ||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments