|
@@ -195,7 +195,7 @@ static void setWeightSM() { //
|
|
|
}
|
|
|
|
|
|
|
|
|
-signed long readnumber(unsigned char* weightbuf, unsigned char length, unsigned char idlelength,
|
|
|
+void readnumber(unsigned char* weightbuf, unsigned char length, unsigned char idlelength,
|
|
|
unsigned char wlength, unsigned char zfpos,unsigned char fchar,unsigned char pointpos){
|
|
|
signed long WeightCurTem_ = 0;
|
|
|
unsigned char WeightCurTemZF = 0;
|
|
@@ -545,12 +545,12 @@ static void P_AWT_ZM303() {
|
|
|
//3D 2D 30 30 30 30 36 34 28 6B 67 29 0D 0A
|
|
|
readnumber(WeightConst_RecWeightData1,WeightConst_RecWeightPoint1, 5, 6, 0x0C, 0x2d, 0xFF);
|
|
|
}
|
|
|
- else if (WeightConst_RecWeightPoint1 == 14 && WeightConst_RecWeightData1[WeightConst_RecWeightPoint1-6]==0x20 &&
|
|
|
- WeightConst_RecWeightData1[WeightConst_RecWeightPoint1-5]==0x6B ) {
|
|
|
+ else if (WeightConst_RecWeightPoint1 == 14 && WeightConst_RecWeightData1[WeightConst_RecWeightPoint1-5]==0x6B ) {
|
|
|
//20 20 20 20 20 31 37 34 20 6B 67 20 47 0D 0A
|
|
|
//20 20 20 20 20 2D 31 38 20 6B 67 20 47 0D 0A
|
|
|
readnumber(WeightConst_RecWeightData1,WeightConst_RecWeightPoint1, 6, 6, 0xFF, 0x2d, 0xFF);
|
|
|
}
|
|
|
+
|
|
|
else if (WeightConst_RecWeightPoint1 == 43 && WeightConst_RecWeightData1[0] == 0x31) {
|
|
|
// 31 2C 53 54 2C 20 20 20 20 20 20 20 2D 32 35 2C 20 20 20 20 20 20 20 20 20 20 20 30 2C 20 20 20 20 20 20 20 20 20 30 2C 6B 67 0D 0A
|
|
|
readnumber(WeightConst_RecWeightData1,WeightConst_RecWeightPoint1, 28, 6, 0xFF, 0x2d, 0xFF);
|
|
@@ -914,7 +914,6 @@ static void P_ID511() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
static void P_AD250() {
|
|
|
// C9 20 20 20 20 33 38 3B 34 D9 38
|
|
|
// C9 20 20 C4 31 32 38 36 38 D9 -128
|