See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
#### Adapted to allow pasting into a bash shell. | |
# 1. Create a rule for the DFU | |
(echo '# DFU (Internal bootloader for STM32 MCUs)'; echo 'ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"') | sudo tee /etc/udev/rules.d/45-stdfu-permissions.rules > /dev/null | |
## - Model ID *may be* 5740, | |
## - which *may be* HappyModel Mobula6 Tiny Whoop Drone or it's F4, All In One, Flight Controller | |
MODEL_ID="5740" | |
# 2. Filter connection info to check MODEL_ID *is* your model, for example by unpluggin and pluging-in the flight controller while udevadm is active |