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 -2
View File
@@ -3,7 +3,7 @@
#include <string.h>
#include <stdlib.h>
char *uartDialog(int terminal_x, int terminal_y)
void uartDialog(char *uart_adress, int terminal_x, int terminal_y)
{
char *prompt = "Please enter UART device address for RFID reader (probably /dev/ttyUSB0): ";
char *header = "Enter UART Address";
@@ -85,7 +85,8 @@ char *uartDialog(int terminal_x, int terminal_y)
refresh();
delwin(uartwin);
refresh();
return input;
strcpy(uart_adress, input);
break;
}
}
}