We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2523fd4 + 3cb0ed9 commit 8361f23Copy full SHA for 8361f23
1 file changed
rest/bulkio_handler.py
@@ -109,15 +109,15 @@ def on_message(self, message):
109
try:
110
ctrl = json.loads(message)
111
112
- if (ctrl['type'] == Control.MaxWidth):
+ if (ctrl['type'] == ControlEnum.MaxWidth):
113
if 0 < ctrl['value']:
114
self._outputWidth = ctrl['value']
115
logging.info('Decimation requested to {0} samples'.format(ctrl['value']))
116
else:
117
self._outputWidth = None
118
logging.info('Decimation disabled')
119
120
- elif (ctrl['type'] == Control.MaxPPS):
+ elif (ctrl['type'] == ControlEnum.MaxPPS):
121
logging.warning('Packets per second (PPS) not implemented yet.')
122
except Exception as e:
123
self.write_message(dict(error='SystemError', message=str(e)))
0 commit comments