Change tab size for C

This commit is contained in:
Alexander Popov 2023-12-04 20:51:59 +03:00
parent e04badb234
commit aa15fc51ec
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
5 changed files with 13 additions and 13 deletions

View File

@ -10,7 +10,7 @@ insert_final_newline = true
[{*.c,*.h}]
indent_style = space
indent_size = 4
indent_size = 2
[*.js]
indent_style = space

View File

@ -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)

View File

@ -72,7 +72,7 @@ int device_connect(const char *port_name) {
}
int device_disconnect() {
sp_close(serial_port);
sp_close(serial_port);
}
#endif

View File

@ -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;
}

View File

@ -8,7 +8,6 @@
void app_close(webui_event_t* e) {
printf("Bye!\n");
// webui_destroy();
webui_exit();
}