mirror of https://github.com/arendst/Tasmota.git
Fix Status13 shutter json and exception 9
This commit is contained in:
parent
18f36c6f4f
commit
765cbe6289
|
@ -584,11 +584,12 @@ void CmndStatus(void)
|
||||||
ResponseAppend_P(PSTR("{\"" D_STATUS13_SHUTTER "%d\":{\"Relay1\":%d,\"Relay2\":%d,\"Open\":%d,\"Close\":%d,"
|
ResponseAppend_P(PSTR("{\"" D_STATUS13_SHUTTER "%d\":{\"Relay1\":%d,\"Relay2\":%d,\"Open\":%d,\"Close\":%d,"
|
||||||
"\"50perc\":%d,\"Delay\":%d,\"Opt\":\"%s\","
|
"\"50perc\":%d,\"Delay\":%d,\"Opt\":\"%s\","
|
||||||
"\"Calib\":\"%d:%d:%d:%d:%d\","
|
"\"Calib\":\"%d:%d:%d:%d:%d\","
|
||||||
"\"Mode\":\"%d\"}"),
|
"\"Mode\":\"%d\"}}"),
|
||||||
i, Settings.shutter_startrelay[i], Settings.shutter_startrelay[i] +1, Settings.shutter_opentime[i], Settings.shutter_closetime[i],
|
i, Settings.shutter_startrelay[i], Settings.shutter_startrelay[i] +1, Settings.shutter_opentime[i], Settings.shutter_closetime[i],
|
||||||
Settings.shutter_set50percent[i], Settings.shutter_motordelay[i], GetBinary(&Settings.shutter_options[i], 4).c_str(),
|
Settings.shutter_set50percent[i], Settings.shutter_motordelay[i], GetBinary(&Settings.shutter_options + (i * sizeof(Settings.shutter_options)), 4).c_str(),
|
||||||
Settings.shuttercoeff[0][i], Settings.shuttercoeff[1][i], Settings.shuttercoeff[2][i], Settings.shuttercoeff[3][i], Settings.shuttercoeff[4][i],
|
Settings.shuttercoeff[0][i], Settings.shuttercoeff[1][i], Settings.shuttercoeff[2][i], Settings.shuttercoeff[3][i], Settings.shuttercoeff[4][i],
|
||||||
Settings.shutter_mode); }
|
Settings.shutter_mode);
|
||||||
|
}
|
||||||
ResponseJsonEnd();
|
ResponseJsonEnd();
|
||||||
MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "13"));
|
MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "13"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue