device: downgrade warning when devices don't echo requests for reprogrammable keys

This commit is contained in:
Peter F. Patel-Schneider 2022-03-09 10:49:43 -05:00
parent 588d7ae533
commit 4c683457f9
1 changed files with 2 additions and 2 deletions

View File

@ -557,8 +557,8 @@ class ReprogrammableKeyV4(ReprogrammableKey):
# TODO: to fully support version 4 of REPROG_CONTROLS_V4, append `(bfield >> 8) & 0xff` here. # TODO: to fully support version 4 of REPROG_CONTROLS_V4, append `(bfield >> 8) & 0xff` here.
# But older devices might behave oddly given that byte, so we don't send it. # But older devices might behave oddly given that byte, so we don't send it.
ret = feature_request(self._device, FEATURE.REPROG_CONTROLS_V4, 0x30, *pkt) ret = feature_request(self._device, FEATURE.REPROG_CONTROLS_V4, 0x30, *pkt)
if ret is None or _unpack('!BBBBB', ret[:5]) != pkt and _log.isEnabledFor(_WARNING): if ret is None or _unpack('!BBBBB', ret[:5]) != pkt and _log.isEnabledFor(_DEBUG):
_log.warn(f"REPROG_CONTROLS_v4 setCidReporting on device {self._device} didn't echo request packet.") _log.debug(f"REPROG_CONTROLS_v4 setCidReporting on device {self._device} didn't echo request packet.")
class KeysArray: class KeysArray: