File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 from meshtastic .slog import LogSet
3535 have_powermon = True
3636 powermon_exception = None
37+ meter : Optional [PowerMeter ] = None
3738except ImportError as e :
3839 have_powermon = False
3940 powermon_exception = e
41+ meter = None
4042from meshtastic .protobuf import channel_pb2 , config_pb2 , portnums_pb2
4143from meshtastic .version import get_active_version
4244
43- meter : Optional [PowerMeter ] = None
44-
45-
4645def onReceive (packet , interface ):
4746 """Callback invoked when a packet arrives"""
4847 args = mt_config .args
@@ -897,7 +896,7 @@ def setSimpleConfig(modem_preset):
897896 qr = pyqrcode .create (url )
898897 print (qr .terminal ())
899898
900- log_set : Optional [ LogSet ] = None # type: ignore[annotation-unchecked]
899+ log_set : Optional = None # type: ignore[annotation-unchecked]
901900 # we need to keep a reference to the logset so it doesn't get GCed early
902901
903902 if args .slog or args .power_stress :
You can’t perform that action at this time.
0 commit comments