FIX: fix the following issues

1. fix the get fc serial number error on M30/M30T
2. fix the identity zenmuse L1 camera failed
3. fix the cpu loading high issue when not used media download apis
4. fix sample cxx compile failed when libusb is not installed

Signed-off-by: DJI-Martin <DJI-Martin@dji.com>
This commit is contained in:
DJI-Martin
2022-08-28 20:09:36 +08:00
parent 07017ca6f0
commit 2f6e079969
19 changed files with 7 additions and 3 deletions

View File

@ -254,7 +254,7 @@ typedef struct {
} T_DjiFlightControllerHomeLocation; // pack(1) } T_DjiFlightControllerHomeLocation; // pack(1)
typedef struct { typedef struct {
char serialNum[16]; char serialNum[32];
} T_DjiFlightControllerGeneralInfo; } T_DjiFlightControllerGeneralInfo;
#pragma pack() #pragma pack()

View File

@ -37,7 +37,7 @@ extern "C" {
#define DJI_VERSION_MINOR 2 /*!< DJI SDK minor version num, when add functionality in a backwards compatible manner changes. Range from 0 to 99. */ #define DJI_VERSION_MINOR 2 /*!< DJI SDK minor version num, when add functionality in a backwards compatible manner changes. Range from 0 to 99. */
#define DJI_VERSION_MODIFY 0 /*!< DJI SDK modify version num, when have backwards compatible bug fixes changes. Range from 0 to 99. */ #define DJI_VERSION_MODIFY 0 /*!< DJI SDK modify version num, when have backwards compatible bug fixes changes. Range from 0 to 99. */
#define DJI_VERSION_BETA 0 /*!< DJI SDK version beta info, release version will be 0, when beta version release changes. Range from 0 to 255. */ #define DJI_VERSION_BETA 0 /*!< DJI SDK version beta info, release version will be 0, when beta version release changes. Range from 0 to 255. */
#define DJI_VERSION_BUILD 1540 /*!< DJI SDK version build info, when jenkins trigger build changes. Range from 0 to 65535. */ #define DJI_VERSION_BUILD 1558 /*!< DJI SDK version build info, when jenkins trigger build changes. Range from 0 to 65535. */
/* Exported types ------------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/

View File

@ -38,9 +38,13 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "dji_platform.h"
#ifdef LIBUSB_INSTALLED
#include <libusb-1.0/libusb.h> #include <libusb-1.0/libusb.h>
#include "dji_platform.h" #endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {