diff --git a/.editorconfig b/.editorconfig index 8b93d91..310d4f1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,7 @@ insert_final_newline = true [{*.c,*.h}] indent_style = space -indent_size = 4 +indent_size = 2 [*.js] indent_style = space diff --git a/README.md b/README.md index 652b2bd..464673d 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/src/device.h b/src/device.h index cc4dbf8..505e0c6 100644 --- a/src/device.h +++ b/src/device.h @@ -72,7 +72,7 @@ int device_connect(const char *port_name) { } int device_disconnect() { - sp_close(serial_port); + sp_close(serial_port); } #endif diff --git a/src/main.c b/src/main.c index d2d2682..cf746bc 100644 --- a/src/main.c +++ b/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; } diff --git a/src/ui.h b/src/ui.h index 1dadd49..817ce2c 100644 --- a/src/ui.h +++ b/src/ui.h @@ -8,7 +8,6 @@ void app_close(webui_event_t* e) { printf("Bye!\n"); - // webui_destroy(); webui_exit(); }