9869:fb2c71c1c7d7 | 9870:0399d3607829 |
---|---|
61 | 61 |
62 self._submitMode = "paste" # use 'paste' mode to avoid loosing state | 62 self._submitMode = "paste" # use 'paste' mode to avoid loosing state |
63 | 63 |
64 self.__boardName = boardName | 64 self.__boardName = boardName |
65 | 65 |
66 self.__workspace = ( | 66 self.__workspace = self.__findWorkspace() if hasWorkspace else None |
67 self.__findWorkspace() if hasWorkspace else None | |
68 ) | |
69 | 67 |
70 self.__updater = CircuitPythonUpdaterInterface(self) | 68 self.__updater = CircuitPythonUpdaterInterface(self) |
71 | 69 |
72 self.__createCPyMenu() | 70 self.__createCPyMenu() |
73 | 71 |
1376 """ | 1374 """ |
1377 Public method to check the availability of network time functions. | 1375 Public method to check the availability of network time functions. |
1378 | 1376 |
1379 @return flag indicating the availability of network time functions | 1377 @return flag indicating the availability of network time functions |
1380 @rtype bool | 1378 @rtype bool |
1379 @exception OSError raised to indicate an issue with the device | |
1381 """ | 1380 """ |
1382 command = """ | 1381 command = """ |
1383 def has_ntp(): | 1382 def has_ntp(): |
1384 try: | 1383 try: |
1385 import adafruit_ntp | 1384 import adafruit_ntp |