Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Dec 20, 2024
1 parent d9dda0c commit 3b4b8c4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can very easily end up with a bricked device if the written firmware can't j

| Keyboard | MCU | ISP | USB | Wireless | Details |
| -------- | --- | --- | --- | -------- | ------- |
| [NuPhy Air60 v1](https://nuphy.com/products/air60) | SH68F90A / BYK916 ||| TBD | [Details](docs/keyboards/nuphy-air60.md) |
| [NuPhy Air60 v1](https://nuphy.com/products/air60) | SH68F90A / BYK916 ||| 2.4G (BT WIP) | [Details](docs/keyboards/nuphy-air60.md) |
| E-YOOSO Z11 | SH68F90A / BYK901 ||| N/A | [Details](docs/keyboards/nuphy-air60.md) |

## Developing
Expand Down
5 changes: 1 addition & 4 deletions src/kb/kb_init.c
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
void kb_init()
{

}
void kb_init() {}
4 changes: 1 addition & 3 deletions src/kb/kb_update.c
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
void kb_update()
{
}
void kb_update() {}
4 changes: 1 addition & 3 deletions src/kb/kb_update_switches.c
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
void kb_update_switches()
{
}
void kb_update_switches() {}
24 changes: 12 additions & 12 deletions src/keyboards/nuphy-air60/kb.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,26 @@ void kb_send_report(report_keyboard_t *report)
case KEYBOARD_CONN_MODE_USB:
usb_send_report(report);
break;
#ifdef RF_ENABLED
#ifdef RF_ENABLED
case KEYBOARD_CONN_MODE_RF:
rf_send_report(report);
break;
#endif
#endif
}
}

uint16_t ticks = 0;
void kb_update()
void kb_update()
{
#ifdef RF_ENABLED
if (user_keyboard_state.conn_mode == KEYBOARD_CONN_MODE_RF) {
if (ticks > 20000) {
EA = 0;
rf_update_keyboard_state(&keyboard_state);
ticks = 0;
EA = 1;
}
#ifdef RF_ENABLED
if (user_keyboard_state.conn_mode == KEYBOARD_CONN_MODE_RF) {
if (ticks > 20000) {
EA = 0;
rf_update_keyboard_state(&keyboard_state);
ticks = 0;
EA = 1;
}
#endif
}
#endif
ticks++;
}

0 comments on commit 3b4b8c4

Please sign in to comment.