|
@@ -2730,7 +2730,7 @@ void SetSntpStateStr(char *str)
|
|
|
*/
|
|
|
void SetSntpServerIpStr(char *str)
|
|
|
{
|
|
|
- if (strncmp(str, sSettings.sSNTP.ip, strlen(str)) != 0) {
|
|
|
+ if (strstr(str, sSettings.sSNTP.ip) == 0 || strlen(str) != strlen(sSettings.sSNTP.ip)) {
|
|
|
strcpy(sSettings.sSNTP.ip, str);
|
|
|
#ifndef BT6702_SERVICE
|
|
|
SNTP_Init();
|