Revision 27e4a312

View differences:

bootloader/AMiRo-BLT
1
Subproject commit dab959cd5693b0ea3f229b0268d370f544d7fa7d
1
Subproject commit 03906dc3eea1bcc0aa880aeadd1bc1ba1d26d472
bootloader/bootloader.mk
35 35
ifeq ($(OS),Windows_NT)
36 36
	FLASH_PORT ?= COM4
37 37
else
38
	FLASH_PORT ?= /dev/ttyUSB0
38
	# check whether /dev/ttyAMiRo0 exists
39
	ifeq (,$(wildcard /dev/ttyAMiRo0))
40
		# check whether /dev/ttyUSB0 exists
41
		ifeq (,$(wildcard /dev/ttyUSB0))
42
			# set to /dev/ttyAMiRo0 for meaningful error message
43
			FLASH_PORT ?= /dev/ttyAMiRo0
44
		else
45
			# legacy support
46
			FLASH_PORT ?= /dev/ttyUSB0
47
		endif
48
	else
49
		FLASH_PORT ?= /dev/ttyAMiRo0
50
	endif
39 51
endif
40 52
FLASH_BAUDRATE ?= 115200
41 53

  

Also available in: Unified diff