diff options
author | Mateusz Piotrowski <mpp302@gmail.com> | 2021-05-06 01:26:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 09:26:50 +1000 |
commit | 38b9f67c3b874ff33383ec2eb18aba58e4e9dfa1 (patch) | |
tree | f1a8aa3ab241c52dec7cfd461df7e82d8ca5d852 /.clang-format | |
parent | c6778dde825d6e7eeb63b51e12fc23baa02188ba (diff) | |
download | qmk_firmware-38b9f67c3b874ff33383ec2eb18aba58e4e9dfa1.tar.gz qmk_firmware-38b9f67c3b874ff33383ec2eb18aba58e4e9dfa1.zip |
Fix qmk flash on FreeBSD (#12085)
When the USB device is connected, FreeBSD creates not one, but three
device nodes in /dev, e.g.: /dev/ttyU0, /dev/ttyU0.init, and
/dev/ttyU0.lock.
As a result, this leads to the USB variable containing 3 paths
(and therefore, whitespace) and messages like this one:
Device /dev/ttyU0
/dev/ttyU0.init
/dev/ttyU0.lock has appeared; assuming it is the controller.
This changes fixes the use of the -z flag of "[" (see test(1)). Also, it
removes undesired paths from the USB variable, leaving only
one path there (i.e., "/dev/ttyU0").
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions