Skip to content

Commit

Permalink
receiver: introduce small delay in getting pairing information to let…
Browse files Browse the repository at this point in the history
… receiver settle after pairing
  • Loading branch information
pfps committed Apr 12, 2024
1 parent 0918221 commit 239cb90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/logitech_receiver/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import errno as _errno
import logging
import time

from dataclasses import dataclass
from typing import Optional
Expand Down Expand Up @@ -209,6 +210,7 @@ def register_new_device(self, number, notification=None):
assert notification is None or notification.sub_id == 0x41

try:
time.sleep(0.05) # let receiver settle
info = self.device_pairing_information(number)
if notification is not None:
online, _e, nwpid, nkind = self.notification_information(number, notification)
Expand Down

0 comments on commit 239cb90

Please sign in to comment.