mirror of https://github.com/arendst/Tasmota.git
Re-enable shutter report on teleperiod (#22586)
* Reactivate shutter report on teleperiod * Reactivate shutter report on teleperiod
This commit is contained in:
parent
f72769252e
commit
ccd76b26ed
|
@ -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(",");
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue