Skip to content

Commit 34a4ba0

Browse files
sequoia-hopeP33M
authored andcommitted
Fix incorrect LED ifdefs
1 parent 0476e9c commit 34a4ba0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/DAP_config.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ It is recommended to provide the following LEDs for status indication:
502502
- 0: Connect LED OFF: debugger is not connected to CMSIS-DAP Debug Unit.
503503
*/
504504
__STATIC_INLINE void LED_CONNECTED_OUT (uint32_t bit) {
505-
#ifdef DEBUGPROBE_DAP_CONNECTED_LED
506-
gpio_put(DEBUGPROBE_DAP_CONNECTED_LED, bit);
505+
#ifdef PROBE_DAP_CONNECTED_LED
506+
gpio_put(PROBE_DAP_CONNECTED_LED, bit);
507507
#endif
508508
}
509509

@@ -513,8 +513,8 @@ __STATIC_INLINE void LED_CONNECTED_OUT (uint32_t bit) {
513513
- 0: Target Running LED OFF: program execution in target stopped.
514514
*/
515515
__STATIC_INLINE void LED_RUNNING_OUT (uint32_t bit) {
516-
#ifdef DEBUGPROBE_DAP_RUNNING_LED
517-
gpio_put(DEBUGPROBE_DAP_RUNNING_LED, bit);
516+
#ifdef PROBE_DAP_RUNNING_LED
517+
gpio_put(PROBE_DAP_RUNNING_LED, bit);
518518
#endif
519519
}
520520

0 commit comments

Comments
 (0)