Skip to content

Commit

Permalink
refactor: Return int from main function.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Feb 9, 2024
1 parent d06e90e commit ba1a6c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ LOG_MODULE_REGISTER(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/display.h>
#include <drivers/ext_power.h>

void main(void) {
int main(void) {
LOG_INF("Welcome to ZMK!\n");

if (zmk_kscan_init(DEVICE_DT_GET(ZMK_MATRIX_NODE_ID)) != 0) {
return;
return -ENOTSUP;
}

#ifdef CONFIG_ZMK_DISPLAY
zmk_display_init();
#endif /* CONFIG_ZMK_DISPLAY */

return 0;
}

0 comments on commit ba1a6c0

Please sign in to comment.