Skip to content

Commit

Permalink
Fix inability to change Input Period (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche committed Jan 23, 2018
1 parent 6f229db commit 108fc8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mycodo/mycodo_flask/utils/utils_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ def input_mod(form_mod_sensor):
"AM2315 may become unresponsive if the period is "
"below 7."))
if (mod_sensor.device != 'EDGE' and
(form_mod_sensor.period.data < mod_sensor.pre_relay_duration and
mod_sensor.pre_relay_duration)):
(mod_sensor.pre_relay_duration and
form_mod_sensor.period.data < mod_sensor.pre_relay_duration)):
error.append(gettext(
"The Read Period cannot be less than the Pre Output "
"Duration"))
Expand Down

0 comments on commit 108fc8d

Please sign in to comment.