Просмотр исходного кода

InitNetwork() extended info.

master
Carlos Reding 1 год назад
Родитель
Сommit
1dc00276a5
1 измененных файлов: 5 добавлений и 1 удалений
  1. 5
    1
      limoControl/pupuicon/_corelib.py

+ 5
- 1
limoControl/pupuicon/_corelib.py Просмотреть файл

@@ -39,7 +39,11 @@ class InitNetwork(object):
host_iface = netint
break
except KeyError:
# Interface not used. Key [2] only exists on interfaces that are being used.
# Interface not used. Key [2] only exists on interfaces that
# are being used. RPi has at least one iface available (wlan0)
# so technically there is no need to define a host_iface=None.
# Define, just in case the platform changes.
host_iface = "None" # Prevents "NoneType has no attribute..."
continue
# Confirmation msg.
if host_iface.find('eth') is not -1:

Загрузка…
Отмена
Сохранить