Skip to content

Commit

Permalink
Minor change in context
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoAldea committed Jan 9, 2024
1 parent 7efbaf7 commit 3a34e19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions code/drv_ea/src/wattrex_driver_ea/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
DEFAULT_RX_CHAN: str = 'RX_SCPI_EA' #Name of the RX channel for epc
DEFAULT_MAX_READS: int = 10

CONSTANTS_NAMES = ('DEFAULT_MAX_VOLT', 'DEFAULT_MAX_CURR', 'DEFAULT_MAX_READS',
'DEFAULT_MAX_MSG', 'DEFAULT_MAX_MESSAGE_SIZE',
'DEFAULT_TX_CHAN', 'DEFAULT_RX_CHAN', 'DEFAULT_MAX_WAIT_TIME')
CONSTANTS_NAMES = ('DEFAULT_MAX_READS','DEFAULT_MAX_MSG', 'DEFAULT_MAX_MESSAGE_SIZE',
'DEFAULT_TX_CHAN', 'DEFAULT_RX_CHAN')
sys_conf_update_config_params(context=globals(),
constants_names=CONSTANTS_NAMES)
constants_names=CONSTANTS_NAMES)
3 changes: 1 addition & 2 deletions code/drv_ea/src/wattrex_driver_ea/drv_ea.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@

####################### MODULE IMPORTS #######################
###################### CONSTANTS ######################
from .context import (DEFAULT_TX_CHAN, DEFAULT_RX_CHAN,
DEFAULT_MAX_MSG, DEFAULT_MAX_MESSAGE_SIZE,
from .context import (DEFAULT_TX_CHAN, DEFAULT_RX_CHAN, DEFAULT_MAX_MSG, DEFAULT_MAX_MESSAGE_SIZE,
DEFAULT_MAX_READS)
####################### ENUMS #######################
_MILI_UNITS = 1000
Expand Down

0 comments on commit 3a34e19

Please sign in to comment.