Merge pull request #7511 from to-scho/enhancement/mqtt_shutterposition_stat

Change MQTT reporting of instantaneous shutter position from tele to …
This commit is contained in:
Theo Arends 2020-01-14 13:59:48 +01:00 committed by GitHub
commit e9ee274082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ void ShutterReportPosition(bool always)
}
ResponseJsonEnd();
if (always || (1 == shutter_moving)) {
MqttPublishPrefixTopic_P(RESULT_OR_TELE, PSTR(D_PRFX_SHUTTER));
MqttPublishPrefixTopic_P(RESULT_OR_STAT, PSTR(D_PRFX_SHUTTER));
}
if (rules_flag.shutter_moving > shutter_moving) {
rules_flag.shutter_moved = 1;