From b8b185b1f43c3649cdf3ef6401d0c44340927344 Mon Sep 17 00:00:00 2001 From: gsd Date: Sun, 15 Feb 2026 00:43:45 +0300 Subject: [PATCH] pp --- service.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/service.py b/service.py index a43559f..4e3093a 100644 --- a/service.py +++ b/service.py @@ -18,6 +18,7 @@ from protobufs_extra.telemetry_proto import * from protobufs_extra.position_proto import * from protobufs_extra.routing_proto import * import pb +from protobuf_decoder.protobuf_decoder import Parser #fs imports from fastapi import FastAPI, HTTPException, WebSocket @@ -158,9 +159,6 @@ class MongoDriver(MeshArgsParse): from tileManager import TileManager self.tileManager = TileManager(self) - from protobuf_decoder.protobuf_decoder import Parser - self.protoParser = Parser() - async def dbSaveRadio(self, new_from_radio): from_radio = copy.deepcopy(new_from_radio) for k, v in from_radio.items(): @@ -203,7 +201,7 @@ class MongoDriver(MeshArgsParse): pass else: to_parse = ' '.join(f'{byte:02x}' for byte in v["payload"]) - res = self.protoParser.parse(to_parse) + res = Parser().parse(to_parse) logger.debug(res.to_dict()) except: pass