Skip to content

Commit

Permalink
updated linter to clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Dec 31, 2023
1 parent edba62e commit 3a0acf1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build release
run: nix develop --command bash -c "! astyle --project -n --dry-run src/*.{h,c} | grep '^Formatted'"
run: nix develop --command clang-format --dry-run -Werror -i src/*.{h,c}
26 changes: 13 additions & 13 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,28 @@ void main()

while (1) {
CLR_WDT();

if (keyboard_state.os_mode != P5_6) {
keyboard_state.os_mode = P5_6;
switch (keyboard_state.os_mode) {
case KEYBOARD_OS_MODE_MAC:
dprintf("MAC_MODE\r\n");
break;
case KEYBOARD_OS_MODE_WIN:
dprintf("WIN_MODE\r\n");
break;
case KEYBOARD_OS_MODE_MAC:
dprintf("MAC_MODE\r\n");
break;
case KEYBOARD_OS_MODE_WIN:
dprintf("WIN_MODE\r\n");
break;
}
}

if (keyboard_state.conn_mode != P5_5) {
keyboard_state.conn_mode = P5_5;
switch (keyboard_state.conn_mode) {
case KEYBOARD_CONN_MODE_USB:
dprintf("USB_MODE\r\n");
break;
case KEYBOARD_CONN_MODE_RF:
dprintf("RF_MODE\r\n");
break;
case KEYBOARD_CONN_MODE_USB:
dprintf("USB_MODE\r\n");
break;
case KEYBOARD_CONN_MODE_RF:
dprintf("RF_MODE\r\n");
break;
}
}

Expand Down

0 comments on commit 3a0acf1

Please sign in to comment.