511 @exception OSError raised to indicate an issue with the device |
511 @exception OSError raised to indicate an issue with the device |
512 """ |
512 """ |
513 # picowireless: |
513 # picowireless: |
514 # It seems to take up to 20 sec to detect, that no Pico Wireless Pack is |
514 # It seems to take up to 20 sec to detect, that no Pico Wireless Pack is |
515 # attached. Therefore the command will timeout before. |
515 # attached. Therefore the command will timeout before. |
516 if Preferences.getMicroPython("DisablePicowireless"): |
516 if Preferences.getMicroPython("DisablePicowireless"): # noqa: Y-108 |
517 # Support for Pimoroni Pico Wireless Pack is disabled. |
517 # Support for Pimoroni Pico Wireless Pack is disabled. |
518 command = """ |
518 command = """ |
519 def has_wifi(): |
519 def has_wifi(): |
520 try: |
520 try: |
521 import network |
521 import network |