|
@@ -606,6 +606,7 @@ void getTargetWeight(void)
|
|
|
|
|
|
WeightConst_WeightTargetAllowMin = WeightConst_WeightTarget - pf_comp.data.autozone; //目标重量的允许跳转范围
|
|
|
WeightConst_WeightTargetAllowMax = WeightConst_WeightTarget + pf_comp.data.autozone;
|
|
|
+
|
|
|
WeightConst_AutoSingleNSecondPoint=0;
|
|
|
WeightConst_oksum = 0;
|
|
|
WeightConst_allsum = 0;
|
|
@@ -779,11 +780,23 @@ void SendWifi_thread(void)
|
|
|
}
|
|
|
|
|
|
static rt_thread_t pop_productid = RT_NULL;
|
|
|
+static void pop_product_thread_cleanup(struct rt_thread *tid)
|
|
|
+{
|
|
|
+ if (tid != pop_productid)
|
|
|
+ {
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
|
|
|
void pop_product_thread(void)
|
|
|
{
|
|
|
pop_productid = rt_thread_create("popproduct", pop_product_entry, RT_NULL, 0x400, 5, 5);
|
|
|
-
|
|
|
+
|
|
|
/* 如果获得线程控制块,启动这个线程 */
|
|
|
- if (pop_productid != RT_NULL) rt_thread_startup(pop_productid);
|
|
|
+ if (pop_productid != RT_NULL)
|
|
|
+ {
|
|
|
+ pop_productid->cleanup = pop_product_thread_cleanup;
|
|
|
+ rt_thread_startup(pop_productid);
|
|
|
+ }
|
|
|
}
|