Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 28, 2024
1 parent f37ee89 commit 2753cce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- Shelly1L
- Shelly1PM
- Shelly2
- Shelly2PMGen3
- Shelly25
- ShellyColorBulb
- ShellyDuo
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MAKEFLAGS += --warn-undefined-variables --no-builtin-rules

.PHONY: build check-format format release upload \
Shelly1 Shelly1L Shelly1PM Shelly25 Shelly2 ShellyColorBulb ShellyDuo ShellyI3 ShellyPlug ShellyPlugS ShellyPlusPlugS ShellyPlus1 ShellyPlus1PM ShellyPlus2PM ShellyPlusI4 ShellyRGBW2 ShellyVintage ShellyU ShellyU25 ShellyUDuo ShellyURGBW2 ShellyUNI ShellyPlus1Mini ShellyPlusRGBWPM ShellyMini1Gen3 ShellyMini1PMGen3
Shelly1 Shelly1L Shelly1PM Shelly25 Shelly2 ShellyColorBulb ShellyDuo ShellyI3 ShellyPlug ShellyPlugS ShellyPlusPlugS ShellyPlus1 ShellyPlus1PM ShellyPlus2PM ShellyPlusI4 ShellyRGBW2 ShellyVintage ShellyU ShellyU25 ShellyUDuo ShellyURGBW2 ShellyUNI ShellyPlus1Mini ShellyPlusRGBWPM ShellyMini1Gen3 ShellyMini1PMGen3 Shelly2PMGen3
.SUFFIXES:

MOS ?= mos
Expand All @@ -27,7 +27,7 @@ ifneq "$(VERBOSE)$(V)" "00"
MOS_BUILD_FLAGS_FINAL += --verbose
endif

build: Shelly1 Shelly1L Shelly1PM Shelly25 Shelly2 ShellyColorBulb ShellyDuo ShellyI3 ShellyPlug ShellyPlugS ShellyPlusPlugS ShellyPlus1 ShellyPlus1PM ShellyPlus2PM ShellyPlusI4 ShellyRGBW2 ShellyVintage ShellyU ShellyU25 ShellyURGBW2 ShellyUNI ShellyPlus1Mini ShellyPlusRGBWPM ShellyMini1Gen3 ShellyMini1PMGen3
build: Shelly1 Shelly1L Shelly1PM Shelly25 Shelly2 ShellyColorBulb ShellyDuo ShellyI3 ShellyPlug ShellyPlugS ShellyPlusPlugS ShellyPlus1 ShellyPlus1PM ShellyPlus2PM ShellyPlusI4 ShellyRGBW2 ShellyVintage ShellyU ShellyU25 ShellyURGBW2 ShellyUNI ShellyPlus1Mini ShellyPlusRGBWPM ShellyMini1Gen3 ShellyMini1PMGen3 Shelly2PMGen3

release:
$(MAKE) build CLEAN=1 RELEASE=1
Expand Down Expand Up @@ -96,6 +96,10 @@ ShellyPlus1Mini: PLATFORM=esp32c3
ShellyPlus1Mini: build-ShellyPlus1Mini
@true

Shelly2PMGen3: PLATFORM=esp32c3
Shelly2PMGen3: build-Shelly2PMGen3
@true

ShellyMini1Gen3: PLATFORM=esp32c3
ShellyMini1Gen3: build-ShellyMini1Gen3
@true
Expand Down
10 changes: 3 additions & 7 deletions mos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ conds:

- when: build_vars.MODEL == "Shelly2PMGen3"
apply:
name: 2PMG3
name: S2PMG3
sources:
- src/DS18XXX
- src/DHT
Expand Down Expand Up @@ -770,18 +770,14 @@ conds:
BTN_GPIO: 19
BTN_DOWN: 0
PRODUCT_HW_REV: "??"
STOCK_FW_MODEL: 2PMG3
STOCK_FW_MODEL: S2PMG3
MAX_NUM_HAP_SESSIONS: 16
RELAY1_GPIO: 5
RELAY2_GPIO: 3
SWITCH1_GPIO: 18
SWITCH2_GPIO: 10
ADC_GPIO: 1
cdefs:
PRODUCT_HW_REV: "0.1.9"
STOCK_FW_MODEL: Plus2PMG3
MAX_NUM_HAP_SESSIONS: 16
SHELLY_HAVE_PM: 1
SDA_GPIO: 6
config_schema:
- ["device.id", "Shelly2PMG3-??????"]
- ["shelly.name", "Shelly2PMG3-??????"]
Expand Down

0 comments on commit 2753cce

Please sign in to comment.