This commit is contained in:
2025-04-03 07:41:30 +02:00
parent cca97e4a0c
commit 248af2bc4d
4 changed files with 7 additions and 8 deletions
+3 -5
View File
@@ -5,13 +5,11 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <termios.h>
#include "users.h"
#include "tui.h"
void *uartListener(void *arg)
{
@@ -21,7 +19,7 @@ void *uartListener(void *arg)
int main(int argc, char const *argv[])
{
int y_max, x_max;
char * uart_address;
char uart_address[51];
pthread_t uart_thread;
initscr();
@@ -42,7 +40,7 @@ int main(int argc, char const *argv[])
erase();
refresh();
uartDialog(x_max, y_max);
uartDialog(uart_address, x_max, y_max);
pthread_create(&uart_thread, NULL, uartListener, NULL);