@@ -178,14 +178,14 @@ async def __aexit__(self, exc_type, exc_val, exc_traceback):
178178
179179
180180# 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 ):
182182 global _listening
183183
184184 channel = L2CAPChannel (connection )
185185
186186 # Start the stack listening if necessary.
187187 if not _listening :
188- ble .l2cap_listen (psn , mtu )
188+ ble .l2cap_listen (psm , mtu )
189189 _listening = True
190190
191191 # Wait for the connect irq from the remote connection.
@@ -195,14 +195,14 @@ async def accept(connection, psn, mtu, timeout_ms):
195195
196196
197197# 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 ):
199199 if _listening :
200200 raise ValueError ("Can't connect while listening" )
201201
202202 channel = L2CAPChannel (connection )
203203
204204 with connection .timeout (timeout_ms ):
205- ble .l2cap_connect (connection ._conn_handle , psn , mtu )
205+ ble .l2cap_connect (connection ._conn_handle , psm , mtu )
206206
207207 # Wait for the connect irq from the remote connection.
208208 # If the connection fails, we get a disconnect event (with status) instead.
0 commit comments