Skip to content

Commit

Permalink
Minor change in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoAldea committed Jan 9, 2024
1 parent e98180f commit 1c8454c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/drv_bk/src/wattrex_driver_bk/drv_bk.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ def __parse_msg(self) -> None: #pylint: disable=too-many-branches
max_volt = DEFAULT_MAX_VOLT * _MILI_UNITS,
max_curr = DEFAULT_MAX_CURR * _MILI_UNITS,
max_pwr = _MAX_PWR * _MILI_UNITS)
log.info(f"Serial number: {data[-1]}")
log.info(f"Model: {data[0]}")
log.info(f"Response: {data}")
log.debug(f"Serial number: {data[-1]}")
log.debug(f"Model: {data[0]}")
log.debug(f"Response: {data}")
else:
if self.last_data.mode in (DrvBkModeE.VOLT_DC, DrvBkModeE.VOLT_AC):
self.last_data.voltage = data #pylint: disable=attribute-defined-outside-init
else:
self.last_data.current = data #pylint: disable=attribute-defined-outside-init
log.info(f"Value read: {data}")
log.debug(f"Value read: {data}")
elif msg is None:
pass
else:
Expand Down

0 comments on commit 1c8454c

Please sign in to comment.