Skip to content

Commit

Permalink
zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb authored and Markus Kirberg committed May 17, 2024
1 parent 1c3bf75 commit 95dc0e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ jobs:
name: releases-${{ matrix.model }}
path: releases/**/shelly-homekit-${{ matrix.model }}.zip
if-no-files-found: warn
merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: Merge Artifacts
uses: actions/download-artifact/merge@v4
with:
name: all-releases
pattern: release-*
6 changes: 4 additions & 2 deletions src/shelly_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ Status OutputPin::SetState(bool on, const char *source) {

Status OutputPin::SetStatePWM(float duty, const char *source) {
LOG(LL_INFO, ("Duty: %.3f", duty));
if (duty == 0 || duty == 1) {
mgos_gpio_write(pin_, duty);
if (duty == 0) {
mgos_pwm_set(pin_, 0, 0);
} else if ( duty == 1) {
mgos_gpio_write(pin_, 1);
LOG(LL_INFO,
("Output %d: %s (%s)", id(), (duty == 0 ? "OFF" : "ON"), source));
} else {
Expand Down

0 comments on commit 95dc0e7

Please sign in to comment.