|
@@ -600,12 +600,13 @@ static void onUI_init(){
|
|
//udp_thread.run("this is thread name");
|
|
//udp_thread.run("this is thread name");
|
|
//测试用
|
|
//测试用
|
|
LOGD("进入mainLogic页面, 触发 onUI_init");
|
|
LOGD("进入mainLogic页面, 触发 onUI_init");
|
|
- if(serverInfo) { // 如果是false,就是不需要
|
|
|
|
- udp_thread.getServerInfo();
|
|
|
|
|
|
+ if (ETHERNETMANAGER->isConnected()) {
|
|
|
|
+ if(serverInfo) { // 如果是false,就是不需要
|
|
|
|
+ udp_thread.getServerInfo();
|
|
|
|
+ }
|
|
|
|
+ udp_thread.getDeviceInfo();
|
|
}
|
|
}
|
|
|
|
|
|
- udp_thread.getDeviceInfo();
|
|
|
|
-
|
|
|
|
if (StoragePreferences::getBool(STORE_NURSING_TYPE, false)) { // 如果处于护理状态
|
|
if (StoragePreferences::getBool(STORE_NURSING_TYPE, false)) { // 如果处于护理状态
|
|
mFunctionWinPtr->showWnd();
|
|
mFunctionWinPtr->showWnd();
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("InNursing"));
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("InNursing"));
|