@@ -233,25 +233,16 @@ def get_time_on_air_us(self, payload_len):
233
233
#
234
234
# ISR implementation is relatively simple, just exists to signal an optional
235
235
# callback, record a timestamp, and wake up the hardware if
236
- # needed. ppplication code is expected to call poll_send() or
236
+ # needed. Application code is expected to call poll_send() or
237
237
# poll_recv() as applicable in order to confirm the modem state.
238
238
#
239
- # This is a MP hard irq in some configurations, meaning no memory allocation is possible.
240
- #
241
- # 'pin' may also be None if this is a "soft" IRQ triggered after a receive
242
- # timed out during a send (meaning no receive IRQ will fire, but the
243
- # receiver should wake up and move on anyhow.)
244
- def _radio_isr (self , pin ):
239
+ # This is a MP hard irq in some configurations.
240
+ def _radio_isr (self , _ ):
245
241
self ._last_irq = time .ticks_ms ()
246
242
if self ._irq_callback :
247
- self ._irq_callback (pin )
243
+ self ._irq_callback ()
248
244
if _DEBUG :
249
- # Note: this may cause a MemoryError and fail if _DEBUG is enabled in this base class
250
- # but disabled in the subclass, meaning this is a hard irq handler
251
- try :
252
- print ("_radio_isr pin={}" .format (pin ))
253
- except MemoryError :
254
- pass
245
+ print ("_radio_isr" )
255
246
256
247
def irq_triggered (self ):
257
248
# Returns True if the ISR has executed since the last time a send or a receive
@@ -264,8 +255,7 @@ def set_irq_callback(self, callback):
264
255
# This is used by the AsyncModem implementation, but can be called in
265
256
# other circumstances to implement custom ISR logic.
266
257
#
267
- # Note that callback may be called in hard ISR context, meaning no
268
- # memory allocation is possible.
258
+ # Note that callback may be called in hard ISR context.
269
259
self ._irq_callback = callback
270
260
271
261
def _get_last_irq (self ):
0 commit comments