在上传采浆量的时候,对上传值进行限制优化;如单采循环设置的230,采集了231-239都显示230;第二循环461-469都显示460;第三循环599-609都显示600.
#include "StdAfx.h"
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "math.h"
#include <malloc.h>
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
float a = 0.34;
float b = 0.67;
float c = 0;
float testTemp = 0.041;
static char i = 1;\
uint8_t k = 0;
//uint8_t LRCzy[15] = {0x3A,0x30,0x33,0x30,0x36,0x32,0x30,0x30,0x31,0x32,0x45,0x31,0x38,0x39,0x30};
uint8_t LRCzy[12] = {0x30,0x33,0x30,0x36,0x32,0x30,0x30,0x31,0x32,0x45,0x31,0x38};
//uint8_t LRCzy[15] = {0x3A,0x30,0x31,0x30,0x36,0x32,0x30,0x30,0x31,0x31,0x37,0x37,0x30,0x35,0x31};
uint8_t Hex_to_ASCII(uint8_t data)
{