diff --git a/libraries/tests/mbed/can_loopback/main.cpp b/libraries/tests/mbed/can_loopback/main.cpp index 3aea4ddcd8e..efbd9a5de4f 100644 --- a/libraries/tests/mbed/can_loopback/main.cpp +++ b/libraries/tests/mbed/can_loopback/main.cpp @@ -21,10 +21,9 @@ CAN can1(P5_9, P5_10); defined(TARGET_NUCLEO_F746ZG) || defined(TARGET_DISCO_L476VG) || \ defined(TARGET_NUCLEO_L476RG) || defined(TARGET_NUCLEO_L432KC) CAN can1(PA_11, PA_12); - defined(TARGET_NUCLEO_F446ZE) || \ - defined(TARGET_NUCLEO_F103RB) || \ - defined(TARGET_NUCLEO_F207ZG) || \ - defined(TARGET_NUCLEO_F303ZE) || \ +#elif defined(TARGET_DISCO_F469NI) || defined(TARGET_DISCO_F746NG) || \ + defined(TARGET_NUCLEO_F446ZE) || defined(TARGET_NUCLEO_F103RB) || \ + defined(TARGET_NUCLEO_F207ZG) || defined(TARGET_NUCLEO_F303ZE) || \ defined(TARGET_DISCO_F769NI) CAN can1(PB_8, PB_9); #endif