Skip to content

Commit

Permalink
fix: namespace duplication handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sookyungson committed Feb 24, 2025
1 parent 74f6637 commit 54ff758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/dxl_c/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define pgm_read_word_near(x) (*(uint16_t*)(x))
#endif

using namespace DYNAMIXEL;

// 2.0 Protocol
#define DXL2_0_PACKET_IDX_HEADER_1 0
Expand Down
6 changes: 2 additions & 4 deletions src/dxl_c/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ struct InfoBulkWriteInst_t {
InfoSyncBulkBuffer_t packet;
} __attribute__((packed));

}

//using namespace DYNAMIXEL; //comment out for fixed build error
} // namespace DYNAMIXEL

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -258,7 +256,7 @@ DXLLibErrorCode_t parse_dxl_packet(InfoToParseDXLPacket_t* p_parse_packet, uint8
DXLLibErrorCode_t fast_begin_parse_dxl_packet(InfoToParseDXLPacket_t* p_parse_packet,
uint8_t protocol_ver);//, uint8_t* p_param_buf, uint16_t param_buf_cap, uint8_t xel_count);
DXLLibErrorCode_t fast_parse_dxl_packet(InfoToParseDXLPacket_t* p_parse_packet, uint8_t recv_data,
InfoSyncReadInst_t *sync_read, InfoBulkReadInst_t *bulk_read);
DYNAMIXEL::InfoSyncReadInst_t *sync_read, DYNAMIXEL::InfoBulkReadInst_t *bulk_read);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 54ff758

Please sign in to comment.