Merge pull request #1210 from keyboardio/makefiles/device-reset-fix

etc/makefiles: Call bin/focus-test to do the device reset
pull/1215/head
Jesse Vincent 2 years ago committed by GitHub
commit 9d374292ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# focus-test - Trivial Focus testing tool # focus-send - Trivial Focus testing tool
# Copyright (C) 2018 Keyboard.io, Inc. # Copyright (C) 2018-2022 Keyboard.io, Inc.
# #
# This program is free software: you can redistribute it and/or modify it under # This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software # the terms of the GNU General Public License as published by the Free Software

@ -207,7 +207,7 @@ endif
@$(shell read _) @$(shell read _)
# If we have a device serial port available, try to trigger a Kaliedoscope reset # If we have a device serial port available, try to trigger a Kaliedoscope reset
ifneq ($(_device_port),) ifneq ($(_device_port),)
$(QUIET) echo "device.reset" > $(_device_port) $(QUIET) DEVICE=$(_device_port) $(KALEIDOSCOPE_DIR)/bin/focus-send "device.reset"
sleep 2 sleep 2
endif endif
$(QUIET) $(ARDUINO_CLI) upload --fqbn $(FQBN) \ $(QUIET) $(ARDUINO_CLI) upload --fqbn $(FQBN) \

Loading…
Cancel
Save