소스 검색

F427 耗电量阈值配置以及显示问题

liyi 8 달 전
부모
커밋
621a33afb2

+ 1 - 1
f427/applications/packages/mongoose-v6.7/7.14/mongoose.h

@@ -254,7 +254,7 @@ int mkdir(const char *, mode_t);
 #include <time.h>
 
 #ifndef MG_IO_SIZE
-#define MG_IO_SIZE 1460
+#define MG_IO_SIZE 2460
 #endif
 
 #endif // MG_ARCH == MG_ARCH_RTTHREAD

+ 2 - 2
f427/applications/power.c

@@ -1106,7 +1106,7 @@ static int board_read(power_handle_t *h, board_data_t *pbrd,uint8_t flag)
 											pch->thr.v_lower = ((tmp[3+index]<<16)|tmp[2+index])/10;
 											pch->thr.c_upper = ((tmp[5+index]<<16)|tmp[4+index])/10;
 											pch->thr.p_upper = ((tmp[9+index]<<16)|tmp[8+index])/10;
-											pch->thr.w_upper = ((tmp[13+index]<<16)|tmp[12+index]/10);
+											pch->thr.w_upper = ((tmp[13+index]<<16)|tmp[12+index])/10;
 										}
 									}else
 									{
@@ -1120,7 +1120,7 @@ static int board_read(power_handle_t *h, board_data_t *pbrd,uint8_t flag)
 											pch->thr.v_lower = ((tmp[3+index]<<16)|tmp[2+index])/10;
 											pch->thr.c_upper = ((tmp[5+index]<<16)|tmp[4+index])/10;
 											pch->thr.p_upper = ((tmp[9+index]<<16)|tmp[8+index])/10;
-											pch->thr.w_upper = ((tmp[13+index]<<16)|tmp[12+index]/10);										
+											pch->thr.w_upper = ((tmp[13+index]<<16)|tmp[12+index])/10;										
 										}
 										offset = POWER_AC_THRESHOLD_L + (16*7);
 										

+ 3 - 3
f427/applications/rtconfig.h

@@ -188,7 +188,7 @@
 #define RT_LWIP_UDP
 #define RT_LWIP_TCP
 #define RT_LWIP_RAW
-#define RT_MEMP_NUM_NETCONN 14
+#define RT_MEMP_NUM_NETCONN 26
 
 //#define MEM_USE_POOLS       1
 //#define PBUF_POOL_SIZE   4
@@ -204,9 +204,9 @@
 #define RT_LWIP_TCP_WND 8196
 #define RT_LWIP_TCPTHREAD_PRIORITY 10
 #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
-#define RT_LWIP_TCPTHREAD_STACKSIZE  2048                 
+#define RT_LWIP_TCPTHREAD_STACKSIZE  4096                 
 #define RT_LWIP_ETHTHREAD_PRIORITY 12
-#define RT_LWIP_ETHTHREAD_STACKSIZE  2048            
+#define RT_LWIP_ETHTHREAD_STACKSIZE  4096            
 #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
 #define RT_LWIP_REASSEMBLY_FRAG
 #define LWIP_NETIF_STATUS_CALLBACK 1

+ 2 - 2
f427/applications/ui/menu.c

@@ -319,9 +319,9 @@ static void menu_input_paint(menu_handle_t *h, int font1, int font2, int item_h,
 {
     int r;
     char tmp[100];
-    total_t *pttl;
+    total_t *pttl,ttl;
 
-    //pttl = &ttl;
+    pttl = &ttl;
     sprintf(tmp, "%s", lang_get_str(h->lang, STR_ID_INPUT));
 
     r = get_input(h, h->ph_in, pttl);

+ 1 - 1
f427/applications/web.c

@@ -962,7 +962,7 @@ static void web_thread(void *arg)
 		
 		
     while(th->quit==0) {
-        mg_mgr_poll(&h->mgr, 100);
+        mg_mgr_poll(&h->mgr, 50);
     }
     mg_mgr_free(&h->mgr);
 }