Skip to content

Commit

Permalink
Fix shutter discovery message regression from v14.4.1 (arendst#22730)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Jan 2, 2025
1 parent b5c326d commit d5d757f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
### Changed

### Fixed
- Shutter discovery message regression from v14.4.1 (#22730)

### Removed

Expand Down
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
- HASPmota support for `tabview` [#22707](https://github.com/arendst/Tasmota/issues/22707)

### Fixed
- Shutter discovery message regression from v14.4.1 [#22730](https://github.com/arendst/Tasmota/issues/22730)
- Webcam compilation with `define USE_WEBCAM` but without `define ENABLE_RTSPSERVER` [#22686](https://github.com/arendst/Tasmota/issues/22686)
- Berry Zigbee fix wrong attributes [#22684](https://github.com/arendst/Tasmota/issues/22684)
- Berry walrus operator [#22685](https://github.com/arendst/Tasmota/issues/22685)
Expand Down
2 changes: 1 addition & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,7 @@ bool Xdrv27(uint32_t function)
}
break;
case FUNC_JSON_APPEND:
if (!ShutterGlobal.sensor_data_reported || TasmotaGlobal.tele_period == 0) {
if (!ShutterGlobal.sensor_data_reported || TasmotaGlobal.tele_period != 2) {
ShutterGlobal.sensor_data_reported = true;
for (uint8_t i = 0; i < TasmotaGlobal.shutters_present; i++) {
ResponseAppend_P(",");
Expand Down
2 changes: 1 addition & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ bool Xdrv27(uint32_t function)
}
break;
case FUNC_JSON_APPEND:
if (!sensor_data_reported || TasmotaGlobal.tele_period == 0) {
if (!sensor_data_reported || TasmotaGlobal.tele_period != 2) {
sensor_data_reported = true;
for (uint8_t i = 0; i < TasmotaGlobal.shutters_present; i++) {
uint8_t position = ShutterRealToPercentPosition(Shutter[i].real_position, i);
Expand Down

0 comments on commit d5d757f

Please sign in to comment.