diff --git a/Tools/AP_Periph/AP_Periph.h b/Tools/AP_Periph/AP_Periph.h index e7e02344dd..ef3b08bfa9 100644 --- a/Tools/AP_Periph/AP_Periph.h +++ b/Tools/AP_Periph/AP_Periph.h @@ -469,6 +469,10 @@ public: #endif }; +#ifndef CAN_APP_NODE_NAME +#define CAN_APP_NODE_NAME "org.ardupilot." CHIBIOS_BOARD_NAME +#endif + namespace AP { AP_Periph_FW& periph(); diff --git a/Tools/AP_Periph/can.cpp b/Tools/AP_Periph/can.cpp index 38f9661a1e..252b769f68 100644 --- a/Tools/AP_Periph/can.cpp +++ b/Tools/AP_Periph/can.cpp @@ -107,10 +107,6 @@ HAL_GPIO_PIN_TERMCAN1 }; #endif // CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && defined(HAL_GPIO_PIN_TERMCAN1) -#ifndef CAN_APP_NODE_NAME -#define CAN_APP_NODE_NAME "org.ardupilot." CHIBIOS_BOARD_NAME -#endif - #ifndef HAL_CAN_DEFAULT_NODE_ID #define HAL_CAN_DEFAULT_NODE_ID CANARD_BROADCAST_NODE_ID #endif