@@ -178,14 +178,14 @@ async def __aexit__(self, exc_type, exc_val, exc_traceback):
178
178
179
179
180
180
# Use connection.l2cap_accept() instead of calling this directly.
181
- async def accept (connection , psn , mtu , timeout_ms ):
181
+ async def accept (connection , psm , mtu , timeout_ms ):
182
182
global _listening
183
183
184
184
channel = L2CAPChannel (connection )
185
185
186
186
# Start the stack listening if necessary.
187
187
if not _listening :
188
- ble .l2cap_listen (psn , mtu )
188
+ ble .l2cap_listen (psm , mtu )
189
189
_listening = True
190
190
191
191
# Wait for the connect irq from the remote connection.
@@ -195,14 +195,14 @@ async def accept(connection, psn, mtu, timeout_ms):
195
195
196
196
197
197
# Use connection.l2cap_connect() instead of calling this directly.
198
- async def connect (connection , psn , mtu , timeout_ms ):
198
+ async def connect (connection , psm , mtu , timeout_ms ):
199
199
if _listening :
200
200
raise ValueError ("Can't connect while listening" )
201
201
202
202
channel = L2CAPChannel (connection )
203
203
204
204
with connection .timeout (timeout_ms ):
205
- ble .l2cap_connect (connection ._conn_handle , psn , mtu )
205
+ ble .l2cap_connect (connection ._conn_handle , psm , mtu )
206
206
207
207
# Wait for the connect irq from the remote connection.
208
208
# If the connection fails, we get a disconnect event (with status) instead.
0 commit comments