Skip to content

Commit

Permalink
add DriverError enum
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuyuan committed Sep 7, 2020
1 parent e8e1245 commit 8883121
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/common/ydlidar_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ typedef struct {
void *lidar;///< CYdLidar instance
} YDLidar;

typedef enum {
NoError = 0,
DeviceNotFoundError,
PermissionError,
UnsupportedOperationError,
UnknownError,
TimeoutError,
NotOpenError,
BlockError,
NotBufferError,
TrembleError,
LaserFailureError,
} DriverError;

#pragma pack(1)

/**
Expand Down

0 comments on commit 8883121

Please sign in to comment.