1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

make/usb_board_reset: define {preflash,term}-delay when necessary

This commit is contained in:
Alexandre Abadie 2023-05-18 21:41:54 +02:00
parent 19ce68dd2e
commit f25731e88a
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -28,8 +28,12 @@ RESET ?= $(PREFLASHER) $(RESETFFLASG)
TESTRUNNER_CONNECT_DELAY ?= $(TERM_DELAY)
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)
ifneq (,$(filter flash flash-only,$(MAKECMDGOALS)))
preflash-delay: preflash
sleep $(PREFLASH_DELAY)
endif
ifneq (,$(filter term,$(MAKECMDGOALS)))
term-delay: $(TERMDELAYDEPS)
sleep $(TERM_DELAY)
endif