Commit 30adb5fe authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Adds some comments

Showing with 2 additions and 1 deletion
+2 -1
......@@ -78,7 +78,7 @@ class OhmPiHardware:
# Initialize RX
HARDWARE_CONFIG['rx'].pop('model')
HARDWARE_CONFIG['rx'].update(**HARDWARE_CONFIG['rx'])
HARDWARE_CONFIG['rx'].update(**HARDWARE_CONFIG['rx']) # TODO: delete me ?
HARDWARE_CONFIG['rx'].update({'ctl': HARDWARE_CONFIG['rx'].pop('ctl', self.ctl)})
if isinstance(HARDWARE_CONFIG['rx']['ctl'], dict):
ctl_mod = HARDWARE_CONFIG['rx']['ctl'].pop('model', self.ctl)
......
......@@ -14,6 +14,7 @@ def get_logging_levels():
"""Gets a list of the logging levels loaded"""
return [logging.getLevelName(x) for x in range(1,101) if not logging.getLevelName(x).startswith('Level')]
def add_logging_level(level_name, level_num, method_name=None):
"""
Comprehensively adds a new logging level to the `logging` module and the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment