code: def idle_task(self):
          '''called in idle time'''
          try:
              data = self.port.recv(1024) # Attempt to read up to 1024 bytes.
          except socket.error as e:
              if e.errno in [ errno.EAGAIN, errno.EWOULDBLOCK ]:
                  return
              raise
          try:
              self.send_rtcm_msg(data)
  
          except Exception as e:
              print("DGPS: GPS Inject Failed:", ef idle_task(self):
          '''called in idle time'''
          try:
              data = self.port.recv(1024) # Attempt to read up to 1024 bytes.
          except socket.error as e:
              if e.errno in [ errno.EAGAIN, errno.EWOULDBLOCK ]:
                  return
              raise
          try:
              self.send_rtcm_msg(data)
  
          except Exception as e:
              print("DGPS: GPS Inject Failed:", e)
docs: called in idle time