Skip to content

Commit

Permalink
Pylint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoAldea committed Feb 2, 2024
1 parent 0eb094f commit 90c331e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/drv_ea/src/wattrex_driver_ea/drv_ea.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def read_buffer(self) -> None: #pylint: disable=too-many-branches, too-many-stat
None
"""
i = 0
while i < DEFAULT_MAX_READS and not self.__rx_chan.is_empty():
while i < DEFAULT_MAX_READS and not self.__rx_chan.is_empty(): #pylint: disable=too-many-nested-blocks
msg: DrvScpiCmdDataC = self.__rx_chan.receive_data_unblocking()
if msg is not None and msg.data_type == DrvScpiCmdTypeE.RESP: #pylint: disable=too-many-nested-blocks
if hasattr(msg, 'status') and msg.status.value == DrvBaseStatusE.COMM_ERROR: #pylint: disable=attribute-defined-outside-init
Expand Down Expand Up @@ -186,7 +186,7 @@ def read_buffer(self) -> None: #pylint: disable=too-many-branches, too-many-stat
if power > 0:
self.last_data.mode = self.__last_mode #pylint: disable=attribute-defined-outside-init
else:
self.last_data.mode = DrvBasePwrModeE.WAIT
self.last_data.mode = DrvBasePwrModeE.WAIT #pylint: disable=attribute-defined-outside-init
self.__wait_4_response = False
log.debug(f"Response: {data}")
elif msg is None:
Expand Down

0 comments on commit 90c331e

Please sign in to comment.