Fixed write network settings command

This commit is contained in:
Yury Shuvakin
2022-11-12 23:47:54 +03:00
parent 16ae768752
commit eb2415c28e

View File

@@ -425,30 +425,30 @@ void modCommandsProcessPacket(unsigned char *data, unsigned int len) {
ind = 0;
modCommandsSendBuffer[ind++] = packet_id;
i=250;
while (i>0){
i=0;
while (i<250){
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->Domain_URL[i],&ind);
i--;
i++;
}
i=250;
while (i>0){
i=0;
while (i<250){
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->Domain_URL_Event[i],&ind);
i--;
i++;
}
i=50;
while (i>0){
i=0;
while (i<50){
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_APN[i],&ind);
i--;
i++;
}
i=50;
while (i>0){
i=0;
while (i<50){
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_USER[i],&ind);
i--;
i++;
}
i=50;
while (i>0){
i=0;
while (i<50){
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_PWD[i],&ind);
i--;
i++;
}
modCommandsSendPacket(modCommandsSendBuffer, ind);