code: def find_device_by_name(name):
      
      if not name:
          return DEFAULT_DEV
      with DEV_LOCK:
          for dev in DEVS:
              if dev.name == name:
                  return dev
      return None
docs: Tries to find a board by board name.