mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
G7: F13 — remove broken deprecated req_mma method
Why: req_mma() references undefined variables `start` and `end`, causing a NameError on every call. The logger.error migration warning confirms the method is intentionally deprecated in favor of req_mma_sync. Since it is broken as shipped, removing it cannot break any working caller. Refs: Forensics report finding F13
This commit is contained in:
@@ -73,10 +73,6 @@ class BinaryCommandHandler(CommandHandlerBase):
|
|||||||
|
|
||||||
return telem_event.payload["lpp"] if telem_event else None
|
return telem_event.payload["lpp"] if telem_event else None
|
||||||
|
|
||||||
async def req_mma(self, contact, timeout=0, min_timeout=0):
|
|
||||||
logger.error("*** please consider using req_mma_sync instead of req_mma")
|
|
||||||
return await self.req_mma_sync(contact, start, end, timeout,min_timeout)
|
|
||||||
|
|
||||||
async def req_mma_sync(self, contact, start, end, timeout=0,min_timeout=0):
|
async def req_mma_sync(self, contact, start, end, timeout=0,min_timeout=0):
|
||||||
async with self._mesh_request_lock:
|
async with self._mesh_request_lock:
|
||||||
req = (
|
req = (
|
||||||
|
|||||||
Reference in New Issue
Block a user