Change tab size for C
This commit is contained in:
parent
e04badb234
commit
aa15fc51ec
@ -10,7 +10,7 @@ insert_final_newline = true
|
||||
|
||||
[{*.c,*.h}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
indent_size = 2
|
||||
|
||||
[*.js]
|
||||
indent_style = space
|
||||
|
@ -1,4 +1,5 @@
|
||||
## 🧰 Завиисимости для сборки:
|
||||
|
||||
* webui 2.4.2
|
||||
* Bootstrap 5.3.1
|
||||
* Семейство шрифтов [Ubuntu](https://assets.ubuntu.com/v1/0cef8205-ubuntu-font-family-0.83.zip)
|
||||
|
@ -72,7 +72,7 @@ int device_connect(const char *port_name) {
|
||||
}
|
||||
|
||||
int device_disconnect() {
|
||||
sp_close(serial_port);
|
||||
sp_close(serial_port);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
20
src/main.c
20
src/main.c
@ -10,22 +10,22 @@
|
||||
#include "ui.h"
|
||||
|
||||
int main(int argc, char const *argv[]) {
|
||||
int app_window = webui_new_window();
|
||||
int app_window = webui_new_window();
|
||||
|
||||
app_html[app_html_len] = '\0';
|
||||
app_html[app_html_len] = '\0';
|
||||
|
||||
#ifndef DEBUG
|
||||
webui_set_kiosk(app_window, true);
|
||||
webui_set_kiosk(app_window, true);
|
||||
#endif
|
||||
|
||||
webui_bind(app_window, "close_app", app_close);
|
||||
webui_bind(app_window, "webui_refresh_ports", app_refresh_devices);
|
||||
webui_bind(app_window, "webui_connect_device", app_connect_device);
|
||||
webui_bind(app_window, "close_app", app_close);
|
||||
webui_bind(app_window, "webui_refresh_ports", app_refresh_devices);
|
||||
webui_bind(app_window, "webui_connect_device", app_connect_device);
|
||||
|
||||
printf("Enjoy :)\n");
|
||||
printf("Enjoy :)\n");
|
||||
|
||||
webui_show(app_window, app_html);
|
||||
webui_wait();
|
||||
webui_show(app_window, app_html);
|
||||
webui_wait();
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user