Fixed write network settings command

This commit is contained in:
Yury Shuvakin committed 2023-03-29 20:05:40 +03:00
1 parent 16ae768752
commit eb2415c28e
1 file changed
+15 -15
+15 -15
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);