mirror of
https://github.com/meshtastic/python.git
synced 2026-01-12 01:37:58 -05:00
move logger init to the end of the import block
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user