Skip to content

Commit 8361f23

Browse files
author
B. Thomas Goodwin
committed
Merge branch 'patch-controlEnum' into 'master'
fixed Control to ControlEnum See merge request !4
2 parents 2523fd4 + 3cb0ed9 commit 8361f23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rest/bulkio_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ def on_message(self, message):
109109
try:
110110
ctrl = json.loads(message)
111111

112-
if (ctrl['type'] == Control.MaxWidth):
112+
if (ctrl['type'] == ControlEnum.MaxWidth):
113113
if 0 < ctrl['value']:
114114
self._outputWidth = ctrl['value']
115115
logging.info('Decimation requested to {0} samples'.format(ctrl['value']))
116116
else:
117117
self._outputWidth = None
118118
logging.info('Decimation disabled')
119119

120-
elif (ctrl['type'] == Control.MaxPPS):
120+
elif (ctrl['type'] == ControlEnum.MaxPPS):
121121
logging.warning('Packets per second (PPS) not implemented yet.')
122122
except Exception as e:
123123
self.write_message(dict(error='SystemError', message=str(e)))

0 commit comments

Comments
 (0)