|
@@ -9,7 +9,7 @@
|
|
|
|
|
|
uint8_t isCC = 0 ;
|
|
|
uint8_t isBLE =0; //用蓝牙传输
|
|
|
-uint8_t isNsmall =1; //新小屏
|
|
|
+uint8_t isNsmall =0; //新小屏
|
|
|
uint8_t isnewBan =0; //隔离主板
|
|
|
const uint8_t isTag = 0 ; //是否含识读标签
|
|
|
unsigned char isn = 0; //是否新大屏
|
|
@@ -19,11 +19,11 @@ unsigned char eid[10]; //
|
|
|
|
|
|
uint8_t XbeeConst_DeviceAddress = 0x01;
|
|
|
uint8_t XbeeConst_NetAddress = 0x00;
|
|
|
-uint8_t XbeeConst_UseAPI = 0x00;
|
|
|
+uint8_t XbeeConst_UseAPI = 0x01;
|
|
|
uint8_t WeightConst_TQ = 0x05;//0x05;
|
|
|
uint8_t WeightConst_BLE = 0;
|
|
|
uint8_t WeightConst_ChanCheShu = 0x02;
|
|
|
-uint8_t WeightConst_SBType = 0x03;
|
|
|
+uint8_t WeightConst_SBType = 0x01;
|
|
|
|
|
|
|
|
|
int16_t WeightConst_WeightBegin = 0; //按键开始重量
|
|
@@ -474,12 +474,15 @@ uint8_t ts_pushArrary(fdb_tsdb_t db, uint8_t *buf, uint8_t length)
|
|
|
findF4();
|
|
|
|
|
|
if (foundF8==0 && foundF4==0){
|
|
|
- result = fdb_tsl_append(db, fdb_blob_make(&blob, buf, length));
|
|
|
- if (result != FDB_NO_ERR)
|
|
|
- {
|
|
|
+ while (fdb_tsl_append(db, fdb_blob_make(&blob, buf, length))!= FDB_NO_ERR){
|
|
|
+ rt_thread_mdelay(10);
|
|
|
+ }
|
|
|
+ //result = fdb_tsl_append(db, fdb_blob_make(&blob, buf, length));
|
|
|
+ // if (result != FDB_NO_ERR)
|
|
|
+ //{
|
|
|
// rt_kprintf("ts_pushArrary:%02X \n", ts_planTime);
|
|
|
- return 0;
|
|
|
- }
|
|
|
+ // return 0;
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
return 1;
|