style: Unified code format
@@ -164,7 +164,8 @@ static bool getApn(char name[THE_APN_MAX_LEN])
memcpy(name, PdnInfo.AccessPointName, PdnInfo.APNLen);
for (int i = 0; ((i < PdnInfo.APNLen) && (PdnInfo.AccessPointName[i] != '\0')); ++i)
{
- if(PdnInfo.AccessPointName[i] == '.'){
+ if (PdnInfo.AccessPointName[i] == '.')
+ {
name[i] = '\0';
break;
}
@@ -178,7 +179,7 @@ static void simQuery(int *simStatus, int *registerStatus, char name[THE_APN_MAX_
int len = 8;
*simStatus = MG_cfwGetSimStatus(0);
MG_osiTracePrintf(LOG_TAG, "==SIM status : %d", *simStatus);
- if(simStatus == 0) return;
+ if (simStatus == NULL) return;
MG_osiTracePrintf(LOG_TAG, "==SIM status : %d", *simStatus);
while(getApn(name))
@@ -262,7 +263,6 @@ void Boat_iot_Thread(void *param)
int appimg_enter(void *param)
{
-
MG_osiTracePrintf(LOG_TAG, "demo example enter");
MG_osiThreadCreateE("boat_iot_entry", Boat_iot_Thread, NULL, OSI_PRIORITY_NORMAL, 24 * 1024, 10);
