@@ -917,24 +917,8 @@ void CmndStatus(void)
917
917
}
918
918
919
919
#ifdef USE_SHUTTER
920
- if (Settings->flag3 .shutter_mode ) {
921
- if ((0 == payload) || (13 == payload)) {
922
- Response_P (PSTR (" {\" " D_CMND_STATUS D_STATUS13_SHUTTER " \" :{" ));
923
- for (uint32_t i = 0 ; i < MAX_SHUTTERS; i++) {
924
- if (0 == Settings->shutter_startrelay [i]) { break ; }
925
- if (i > 0 ) { ResponseAppend_P (PSTR (" ," )); }
926
- ResponseAppend_P (PSTR (" \" " D_STATUS13_SHUTTER " %d\" :{\" Relay1\" :%d,\" Relay2\" :%d,\" Open\" :%d,\" Close\" :%d,"
927
- " \" 50perc\" :%d,\" Delay\" :%d,\" Opt\" :\" %s\" ,"
928
- " \" Calib\" :[%d,%d,%d,%d,%d],"
929
- " \" Mode\" :\" %d\" }" ),
930
- i, Settings->shutter_startrelay [i], Settings->shutter_startrelay [i] +1 , Settings->shutter_opentime [i], Settings->shutter_closetime [i],
931
- Settings->shutter_set50percent [i], Settings->shutter_motordelay [i], GetBinary8 (Settings->shutter_options [i], 4 ).c_str (),
932
- Settings->shuttercoeff [0 ][i], Settings->shuttercoeff [1 ][i], Settings->shuttercoeff [2 ][i], Settings->shuttercoeff [3 ][i], Settings->shuttercoeff [4 ][i],
933
- Settings->shutter_mode );
934
- }
935
- ResponseJsonEndEnd ();
936
- CmndStatusResponse (13 );
937
- }
920
+ if ((0 == payload) || (13 == payload)) {
921
+ if (ShutterStatus ()) { CmndStatusResponse (13 ); }
938
922
}
939
923
#endif
940
924
0 commit comments