AP_UAVCAN: fix redefinition of UAVCAN_NODE_POOL_BLOCK_SIZE warning

This commit is contained in:
Peter Barker 2019-05-28 12:18:36 +10:00 committed by Andrew Tridgell
parent cbf6d44277
commit fb3f761fc7

View File

@ -41,6 +41,9 @@ void loop();
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
#define UAVCAN_NODE_POOL_SIZE 8192
#ifdef UAVCAN_NODE_POOL_BLOCK_SIZE
#undef UAVCAN_NODE_POOL_BLOCK_SIZE
#endif
#define UAVCAN_NODE_POOL_BLOCK_SIZE 256
#define debug_uavcan(fmt, args...) do { hal.console->printf(fmt, ##args); } while (0)