better responses for Mi32Optionx n

This commit is contained in:
Simon Hailes 2021-02-17 10:52:02 +00:00
parent 10ee56b9da
commit e7ef60aa3d
1 changed files with 7 additions and 7 deletions

View File

@ -2171,22 +2171,22 @@ void CmndMi32Option(void){
switch(XdrvMailbox.index) {
case 0:
MI32.option.allwaysAggregate = onOff;
ResponseCmndNumber(onOff);
ResponseCmndIdxNumber(onOff);
return;
break;
case 1:
MI32.option.noSummary = onOff;
ResponseCmndNumber(onOff);
ResponseCmndIdxNumber(onOff);
return;
break;
case 2:
MI32.option.directBridgeMode = onOff;
ResponseCmndNumber(onOff);
ResponseCmndIdxNumber(onOff);
return;
break;
case 4:{
MI32.option.ignoreBogusBattery = onOff;
ResponseCmndNumber(onOff);
ResponseCmndIdxNumber(onOff);
return;
} break;
case 5:{
@ -2195,17 +2195,17 @@ void CmndMi32Option(void){
// discard all sensors for a restart
MIBLEsensors.clear();
}
ResponseCmndNumber(onOff);
ResponseCmndIdxNumber(onOff);
return;
} break;
case 6:{
MI32.option.MQTTType = onOff;
ResponseCmndNumber(onOff);
ResponseCmndIdxNumber(onOff);
return;
} break;
}
ResponseCmndDone();
ResponseCmndIdxError();
}
void MI32KeyListResp(){