slog depends on powermon, so move it within the optional block as well

This commit is contained in:
Ian McEwen
2024-08-11 10:16:22 -07:00
parent b8c0a62b27
commit 6757f5cdb5
3 changed files with 5 additions and 5 deletions

View File

@@ -31,13 +31,13 @@ try:
RidenPowerSupply,
SimPowerSupply,
)
from meshtastic.slog import LogSet
have_powermon = True
powermon_exception = None
except ImportError as e:
have_powermon = False
powermon_exception = e
from meshtastic.protobuf import channel_pb2, config_pb2, portnums_pb2
from meshtastic.slog import LogSet
from meshtastic.version import get_active_version
meter: Optional[PowerMeter] = None