更改名字

master
Matthew 11 months ago
parent 97e44fa146
commit 94f225f57b

@ -1077,7 +1077,7 @@ void Gm_InitSerialComm(SENSOR_PARAM *sensorParam, char *filedir)
if(NULL == filedir) if(NULL == filedir)
return; return;
memset(srdt.filedir, 0, sizeof(srdt.filedir)); memset(srdt.filedir, 0, sizeof(srdt.filedir));
memmove(srdt.filedir, filedir, min(sizeof(srdt.filedir), strlen(filedir))); memmove(srdt.filedir, filedir, MIN(sizeof(srdt.filedir), strlen(filedir)));
FindDevUseSerialCommNo(); FindDevUseSerialCommNo();
#if 0 #if 0
//Collect_sensor_data(); //Collect_sensor_data();

@ -34,7 +34,7 @@ typedef long long LONG;
#define LOWORD(l) ((WORD)(l)) #define LOWORD(l) ((WORD)(l))
#define HIWORD(l) ((WORD)((DWORD)(l) >> 16)) #define HIWORD(l) ((WORD)((DWORD)(l) >> 16))
#define min(a, b) ((a) < (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX_STRING_LEN 32 #define MAX_STRING_LEN 32
#define IOT_PARAM_WRITE 0xAE #define IOT_PARAM_WRITE 0xAE
#define IOT_PARAM_READ 0xAF #define IOT_PARAM_READ 0xAF

Loading…
Cancel
Save