|
|
@ -297,13 +297,11 @@ class Tici(HardwareBase): |
|
|
|
return None |
|
|
|
return None |
|
|
|
|
|
|
|
|
|
|
|
def get_modem_temperatures(self): |
|
|
|
def get_modem_temperatures(self): |
|
|
|
if self.get_device_type() == "mici": |
|
|
|
|
|
|
|
return [] |
|
|
|
|
|
|
|
timeout = 0.2 # Default timeout is too short |
|
|
|
timeout = 0.2 # Default timeout is too short |
|
|
|
try: |
|
|
|
try: |
|
|
|
modem = self.get_modem() |
|
|
|
modem = self.get_modem() |
|
|
|
temps = modem.Command("AT+QTEMP", math.ceil(timeout), dbus_interface=MM_MODEM, timeout=timeout) |
|
|
|
temps = modem.Command("AT+QTEMP", math.ceil(timeout), dbus_interface=MM_MODEM, timeout=timeout) |
|
|
|
return list(map(int, temps.split(' ')[1].split(','))) |
|
|
|
return list(filter(lambda t: t != 255, map(int, temps.split(' ')[1].split(',')))) |
|
|
|
except Exception: |
|
|
|
except Exception: |
|
|
|
return [] |
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|