Re-enable shutter report on teleperiod (#22586)

* Reactivate shutter report on teleperiod

* Reactivate shutter report on teleperiod
This commit is contained in:
stefanbode 2024-12-04 11:43:51 +01:00 committed by GitHub
parent f72769252e
commit ccd76b26ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2383,7 +2383,7 @@ bool Xdrv27(uint32_t function)
}
break;
case FUNC_JSON_APPEND:
if (!ShutterGlobal.sensor_data_reported) {
if (!ShutterGlobal.sensor_data_reported || TasmotaGlobal.tele_period == 0) {
ShutterGlobal.sensor_data_reported = true;
for (uint8_t i = 0; i < TasmotaGlobal.shutters_present; i++) {
ResponseAppend_P(",");

View File

@ -1974,7 +1974,7 @@ bool Xdrv27(uint32_t function)
}
break;
case FUNC_JSON_APPEND:
if (!sensor_data_reported) {
if (!sensor_data_reported || TasmotaGlobal.tele_period == 0) {
sensor_data_reported = true;
for (uint8_t i = 0; i < TasmotaGlobal.shutters_present; i++) {
uint8_t position = ShutterRealToPercentPosition(Shutter[i].real_position, i);