Skip to content

Commit

Permalink
Merge pull request #77 from borisbu/develop
Browse files Browse the repository at this point in the history
Releasing `1.4.1`
  • Loading branch information
RobinTail authored Jul 19, 2023
2 parents 494121d + 92c5aad commit b7a6f3b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Version 1

### 1.4.1

- Fixed issue with turning relays ON when start printing.
- Thanks to [@hcooper](https://github.com/hcooper)'s contribution issues
[#39](https://github.com/borisbu/OctoRelay/issues/39) and
[#52](https://github.com/borisbu/OctoRelay/issues/52) are most likely resolved.

### 1.4.0

- JS: Types constraints and tests.
Expand Down
9 changes: 5 additions & 4 deletions octoprint_octorelay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,12 @@ def print_started(self):
settings = self.get_settings_defaults()[index]
settings.update(self._settings.get([index]))

relay_pin = int(settings["relay_pin"])
inverted = settings['inverted_output']
autoONforPrint = settings['autoONforPrint']
if autoONforPrint:
relay_pin = int(settings["relay_pin"])
inverted = settings['inverted_output']

active = settings["active"]
if autoONforPrint and active:
self._logger.debug("turning on pin: {}, index: {}".format(relay_pin, index))
GPIO.setup(relay_pin, GPIO.OUT)
# XOR with inverted
GPIO.output(relay_pin, inverted != True)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
plugin_name = "OctoRelay"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.4.0"
plugin_version = "1.4.1"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit b7a6f3b

Please sign in to comment.