diff --git a/lora.py b/lora.py index b7c1922..6a830c1 100644 --- a/lora.py +++ b/lora.py @@ -578,11 +578,7 @@ class TestLORANode(unittest.IsolatedAsyncioTestCase): # Create the state for testing commstate = lora_comms.CommsState() - # dummy callback - def procmsg(msg, outbuf): - pass - - cb = lora_comms.process_msgfunc_t(procmsg) + cb = lora_comms.process_msgfunc_t(lambda msg, outbuf: None) # Generate shared key shared_key = os.urandom(32)