Skip to content

Commit

Permalink
[CI] Format code according to conventions (#12838)
Browse files Browse the repository at this point in the history
Co-authored-by: QMK Bot <[email protected]>
  • Loading branch information
github-actions[bot] and qmk-bot authored May 9, 2021
1 parent 1426ffc commit 6c5e940
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions drivers/haptic/haptic.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
typedef union {
uint32_t raw;
struct {
bool enable : 1;
uint8_t feedback : 2;
uint8_t mode : 7;
bool buzz : 1;
uint8_t dwell : 7;
bool cont : 1;
uint8_t amplitude : 8;
bool enable : 1;
uint8_t feedback : 2;
uint8_t mode : 7;
bool buzz : 1;
uint8_t dwell : 7;
bool cont : 1;
uint8_t amplitude : 8;
uint8_t reserved : 5;
};
} haptic_config_t;
Expand Down
5 changes: 4 additions & 1 deletion lib/python/qmk/cli/multibuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def _make_rules_mk_filter(key, value):
def _rules_mk_filter(keyboard_name):
rules_mk = qmk.keyboard.rules_mk(keyboard_name)
return True if key in rules_mk and rules_mk[key].lower() == str(value).lower() else False

return _rules_mk_filter


Expand Down Expand Up @@ -69,7 +70,9 @@ def multibuild(cli):
|| printf "Build %-64s \e[1;32m[OK]\e[0m\\n" "{keyboard_name}:default"
@rm -f "{QMK_FIRMWARE}/.build/build.log.{keyboard_safe}" || true
""" # noqa: yapf should not care about the formatting of the Makefile
"""

# noqa: yapf should not care about the formatting of the Makefile
)

cli.run([make_cmd, '-j', str(cli.args.parallel), '-f', makefile, 'all'], capture_output=False, text=False)

0 comments on commit 6c5e940

Please sign in to comment.