mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Fixed return on non-init
This commit is contained in:
parent
a0b97bf4a3
commit
5a1eb23b0a
@ -1586,13 +1586,19 @@ class SidebandCore():
|
|||||||
self.telemeter.disable(sensor)
|
self.telemeter.disable(sensor)
|
||||||
|
|
||||||
def get_telemetry(self):
|
def get_telemetry(self):
|
||||||
|
if self.config["telemetry_enabled"] == True:
|
||||||
self.update_telemeter_config()
|
self.update_telemeter_config()
|
||||||
return self.telemeter.read_all()
|
return self.telemeter.read_all()
|
||||||
|
else:
|
||||||
|
return {}
|
||||||
|
|
||||||
def get_packed_telemetry(self):
|
def get_packed_telemetry(self):
|
||||||
|
if self.config["telemetry_enabled"] == True:
|
||||||
self.update_telemeter_config()
|
self.update_telemeter_config()
|
||||||
packed = self.telemeter.packed()
|
packed = self.telemeter.packed()
|
||||||
return packed
|
return packed
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
||||||
def is_known(self, dest_hash):
|
def is_known(self, dest_hash):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user