move logger init to the end of the import block

This commit is contained in:
shukari
2025-08-06 19:54:08 +02:00
committed by GitHub
parent db1891b651
commit af4947d020

View File

@@ -9,9 +9,6 @@ from typing import List, Optional, Union
from types import ModuleType
import argparse
import logging
logger = logging.getLogger(__name__)
argcomplete: Union[None, ModuleType] = None
try:
@@ -66,6 +63,8 @@ except ImportError as e:
from meshtastic.protobuf import channel_pb2, config_pb2, portnums_pb2
from meshtastic.version import get_active_version
logger = logging.getLogger(__name__)
def onReceive(packet, interface) -> None:
"""Callback invoked when a packet arrives"""
args = mt_config.args