967 """ |
967 """ |
968 Private slot to populate the Super Menu before showing it. |
968 Private slot to populate the Super Menu before showing it. |
969 """ |
969 """ |
970 self.__superMenu.clear() |
970 self.__superMenu.clear() |
971 |
971 |
972 if self.__device: |
972 if self.__device and not self.__device.hasCircuitPython(): |
973 networkConnected = self.__device.isNetworkConnected() |
973 networkConnected = self.__device.isNetworkConnected() |
974 useLocalMip = ( |
974 useLocalMip = ( |
975 ( |
975 ( |
976 self.__device.getDeviceData("mip") |
976 self.__device.getDeviceData("mip") |
977 or self.__device.getDeviceData("upip") |
977 or self.__device.getDeviceData("upip") |
978 ) and not networkConnected |
978 ) |
|
979 and not networkConnected |
979 ) or self.__device.getDeviceData("local_mip") |
980 ) or self.__device.getDeviceData("local_mip") |
980 hasMip = self.__device.getDeviceData("mip") and networkConnected |
981 hasMip = self.__device.getDeviceData("mip") and networkConnected |
981 hasUPip = self.__device.getDeviceData("upip") and networkConnected |
982 hasUPip = self.__device.getDeviceData("upip") and networkConnected |
982 else: |
983 else: |
983 hasMip = False |
984 hasMip = False |